/* ==========================================================================
   Mujeres en Red — Por el Acceso a la Información
   Page-specific styles (imports global style.css)
   ========================================================================== */
@import url('../style.css');

/* --- Program Color Palette --- */
:root {
    --mr-primary: #B02292;       /* Magenta */
    --mr-primary-light: #c73daa; /* Magenta claro */
    --mr-pink-soft: #F4D3E3;     /* Rosa suave fondo */
    --mr-violet: #635AB5;        /* Violeta / Índigo */
    --mr-teal: #009DB9;          /* Turquesa */
    --mr-lavender: #E6DBEB;      /* Lavanda */
    --mr-coral: #ff7d50;         /* Naranja coral */
    --mr-dark: #2e1a3b;          /* Oscuro profundo */
    --mr-gradient: linear-gradient(135deg, #B02292 0%, #635AB5 50%, #2e1a3b 100%);
    --mr-gradient-soft: linear-gradient(135deg, #F4D3E3 0%, #E6DBEB 50%, #d4c5e2 100%);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.project-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 80px;
    background: var(--mr-gradient);
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(176, 34, 146, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 90, 181, 0.25) 0%, transparent 60%);
    z-index: 1;
}

.project-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.project-hero-logo {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    animation: fadeInUp 0.8s ease-out;
}

.project-hero .hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.project-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    font-family: var(--font-primary);
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.project-hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #F4D3E3;
    font-family: var(--font-secondary);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.project-hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    max-width: 640px;
}

/* Hero CTA buttons */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--mr-primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(176, 34, 146, 0.35);
}

.hero-btn-primary:hover {
    background: var(--mr-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(176, 34, 146, 0.45);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Section Headers (override global with program color)
   ========================================================================== */
.mr-section .section-subtitle {
    color: var(--mr-primary);
}

.mr-section .title-underline {
    background: var(--mr-gradient);
}

/* ==========================================================================
   About / Introduction Section
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background: var(--color-bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--mr-dark);
    margin-bottom: 16px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Topic Cards — Temas Clave
   ========================================================================== */
.topics-section {
    padding: 100px 0;
    background: var(--mr-gradient-soft);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.topic-card {
    background: var(--color-bg-white);
    border-radius: var(--border-radius-md);
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--mr-primary);
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(176, 34, 146, 0.15);
}

.topic-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--mr-pink-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.topic-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mr-dark);
    margin-bottom: 12px;
}

.topic-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* ==========================================================================
   Gallery Section — Talleres y Capacitaciones
   ========================================================================== */
.gallery-section {
    padding: 100px 0;
    background: var(--color-bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(46, 26, 59, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   Material Educativo — Trípticos
   ========================================================================== */
.material-section {
    padding: 100px 0;
    background: var(--mr-gradient-soft);
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.material-card {
    background: var(--color-bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.material-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(176, 34, 146, 0.12);
}

.material-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}

.material-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.material-card:hover .material-card-img img {
    transform: scale(1.05);
}

.material-card-body {
    padding: 24px;
}

.material-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mr-dark);
    margin-bottom: 8px;
}

.material-card-body p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ==========================================================================
   Aliados / Partners
   ========================================================================== */
.partners-section {
    padding: 80px 0;
    background: var(--mr-primary);
}

.partners-section .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.partners-section .section-title {
    color: #fff;
}

.partners-section .title-underline {
    background: linear-gradient(90deg, var(--mr-coral), var(--mr-teal));
}

.partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;
    margin-top: 48px;
}

.partner-logo {
    height: 72px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-logo-bg {
    background: rgba(255,255,255,0.95);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
}

.partner-logo:hover {
    transform: scale(1.08);
}

.partner-logo-bg:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Lightbox (gallery + material)
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .project-hero {
        min-height: 60vh;
        padding: 140px 20px 60px;
    }
    .project-hero-title {
        font-size: 2rem;
    }
    .project-hero-subtitle {
        font-size: 1.1rem;
    }
    .project-hero-logo {
        max-width: 160px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .material-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .partners-grid {
        gap: 28px;
    }
    .partner-logo {
        height: 48px;
    }
    .hero-actions {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .project-hero-title {
        font-size: 1.6rem;
    }
}
