/* ==========================================================================
   1. PALETA DE COLORES Y VARIABLES GLOBALES
   ========================================================================== */
:root {
    --bg-main: #f5f2cf;         /* Fondo crema oficial unificado en toda la web */
    --top-orange: #e8593e;      /* Naranja rojizo / Terracota */
    --menta-box: #a8dfc9;       /* Verde menta suave */
    --text-dark: #000000;       /* Texto negro principal */
    --text-gray: #555555;       /* Texto gris secundario */
    --text-menta: #4bb393;      /* Texto de enlaces verde menta */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    padding-top: 420px; /* Margen de reserva para el header estático */
}

/* ==========================================================================
   2. ESTILOS DE LA CABECERA FIJA ESTABILIZADA (INDEX.HTML)
   ========================================================================== */
.sticky-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-main);
    transition: all 0.4s ease;
    will-change: transform, padding;
}

/* Banda superior unificada a 35px */
.top-line {
    background-color: var(--top-orange);
    height: 35px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 35px auto 0 auto;
    padding: 1rem 2rem 0 2rem;
    transition: all 0.4s ease;
}

.brand-top-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: all 0.4s ease;
}

.logo-container {
    padding: 0.5rem 0 0 0;
    transition: all 0.4s ease;
}

.brand-logo-img {
    max-width: 280px;  
    height: auto;      
    display: block;
    transition: all 0.4s ease;
}

.top-gallery {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 1rem auto;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item {
    width: 130px;
    height: 130px;
    border-radius: 25px; 
    background-color: #bbb;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.img1 { background-image: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?w=200'); }
.img2 { background-image: url('https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?w=200'); }
.img3 { background-image: url('https://images.unsplash.com/photo-1478720568477-152d9b164e26?w=200'); }
.img4 { background-image: url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?w=200'); }
.img5 { background-image: url('https://images.unsplash.com/photo-1542204172-e7052809f852?w=200'); }

.pill-nav {
    width: 100%;
    transition: all 0.4s ease;
}

.pill-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    gap: 10px;
    margin: 1.2rem 0 2rem 0;
    padding: 0;
    transition: all 0.4s ease;
}

.nav-pill {
    display: inline-block;
    padding: 8px 18px;
    background-color: var(--bg-main);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    border-radius: 50px;
    border: 2px solid #000000;
    transition: all 0.2s ease;
}

.nav-pill.active-pill {
    background-color: var(--top-orange);
    color: white;
}

/* ==========================================================================
   3. EFECTO DINÁMICO DE SCROLL (SHRINK EN INDEX)
   ========================================================================== */
.sticky-header.shrink .brand-top-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.sticky-header.shrink .brand-logo-img { max-width: 280px; }
.sticky-header.shrink .logo-container { padding: 0; }
.sticky-header.shrink .top-gallery { margin: 0; gap: 12px; }
.sticky-header.shrink .gallery-item { width: 130px; height: 130px; border-radius: 25px; }
.sticky-header.shrink .pill-nav ul { margin: 0.5rem 0 0.8rem 0; }

/* ==========================================================================
   4. CONTENIDO SECCIONES PRINCIPALES
   ========================================================================== */
.content-wrapper {
    max-width: 950px;
    margin: 0 auto;
    padding: 2rem 1.5rem 0 1.5rem;
}

.info-date {
    color: #55c4a4; 
    font-size: 1.1rem;
    font-weight: bold;
    font-style: italic;
    text-align: center;
}

.main-title {
    color: var(--top-orange);
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.main-subtitle {
    color: #55c4a4;
    font-size: 1.1rem;
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
}

.about-container {
    background-color: var(--menta-box);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3.5rem;
    scroll-margin-top: 260px; 
}

.about-text h2 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.about-text .desc-es {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.about-text .desc-en {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--top-orange);
    font-style: italic;
}

.about-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

.about-image-box {
    width: 100%;
    height: 180px;
    background-color: #83b9a5; 
    border-radius: 15px;       
    border: 1.5px solid #000;  
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.image-overlay .smiley {
    display: block;
    font-size: 1.2rem;
    margin-top: 5px;
}

.more-info-corner {
    font-size: 0.75rem;
    color: var(--top-orange);
    font-weight: bold;
    margin-top: 8px;
    text-decoration: none;
    cursor: pointer;
}

.content-section {
    margin-bottom: 3rem;
    scroll-margin-top: 260px;
}

.section-heading {
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.circle-icon {
    width: 14px;
    height: 14px;
    border: 2px solid var(--top-orange);
    border-radius: 50%;
    display: inline-block;
}

.layout-border {
    border-left: 4px solid var(--top-orange);
    border-bottom: 4px solid var(--top-orange);
    padding: 0 0 1.5rem 1.5rem;
    margin-left: 7px;
}

.aliados-title-frame {
    border-left: 4px solid var(--top-orange);
    border-bottom: 4px solid var(--top-orange);
    margin-left: 7px;
    padding: 0 0 1.3rem 1.8rem;
    min-height: 54px;
    overflow: hidden;
}

.organizado-carousel-wrap {
    overflow: hidden;
    width: 100%;
    padding: 0.4rem 0;
}

.organizado-carousel-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: organizado-scroll 28s linear infinite;
}

.organizado-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes organizado-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.organizado-carousel-img {
    max-height: 34px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    display: block;
    filter: grayscale(100%) contrast(150%);
}

.organizado-divider {
    width: 1.5px;
    height: 28px;
    background-color: #333333;
    margin: 0 0.4rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.colaboracion-carousel-wrap {
    overflow: hidden;
    width: 100%;
    padding: 0.4rem 0;
}

.colaboracion-carousel-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: colaboracion-scroll 25s linear infinite;
}

.colaboracion-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes colaboracion-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.colaboracion-carousel-img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    display: block;
    filter: grayscale(100%) contrast(150%);
}

.aliados-carousel-track {
    display: flex;
    align-items: center;
    gap: 2.8rem;
    width: max-content;
    animation: aliados-scroll 30s linear infinite;
}

.aliados-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes aliados-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.aliados-carousel-img {
    max-height: 54px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    display: block;
}

.inner-content p { font-size: 1rem; line-height: 1.5; }
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.activity-col h3 { font-size: 1.05rem; font-weight: bold; margin-bottom: 0.5rem; }
.activity-col p { font-size: 0.9rem; color: #333; margin-bottom: 0.8rem; }
.link-arrow { font-size: 0.9rem; color: var(--text-menta); text-decoration: none; font-weight: bold; }

/* ==========================================================================
   5. SECCIÓN DE LOGOS DE ALIADOS ESTRATÉGICOS
   ========================================================================== */
.logos-container {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding: 1.5rem 0;
    width: 100%;
}

.aliados-logos-shell {
    width: 100%;
    max-width: 950px;
    margin: 0 auto 4rem auto;
    padding: 0 1.5rem;
}

.aliados-logos-shell .layout-border {
    border: none;
    padding: 0;
    margin-left: 0;
}

.aliados-groups {
    gap: 2.2rem;
}

.logos-group {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.logos-group-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-dark);
    letter-spacing: 0.2px;
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.row-top .logo-item {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(150%);
}

.row-bottom .logo-item {
    max-height: 32px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(150%);
}

.aliados-groups .row-bottom {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
}

.aliados-groups .row-bottom .logo-item {
    max-height: 34px;
}

.logo-divider {
    width: 1.5px;
    height: 28px;
    background-color: #333333;
    margin: 0 0.4rem;
    opacity: 0.8;
}

/* ==========================================================================
   6. CONTACTO Y REDES
   ========================================================================== */
.contact-container {
    background-color: var(--menta-box);
    border-radius: 20px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
    scroll-margin-top: 260px;
}

.contact-info h2 { font-size: 2.2rem; font-weight: bold; letter-spacing: 0.5px; margin-bottom: 2rem; }
.contact-methods { display: flex; gap: 3rem; justify-content: space-around; align-items: stretch; }
.contact-col-item { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.contact-col-item h3 { font-size: 0.85rem; font-weight: bold; margin: 0.5rem 0; }
.contact-icon { font-size: 2.5rem; color: var(--top-orange); }
.contact-link { color: var(--top-orange); font-weight: bold; text-decoration: underline; font-size: 0.95rem; }

.instagram-mockup {
    background: #ffffff;
    border-radius: 26px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    overflow: hidden;
}

.instagram-embed-shell {
    position: relative;
    min-height: 560px;
    pointer-events: none;
    user-select: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,248,248,0.96));
}

.instagram-preview-iframe {
    display: block;
    width: 100%;
    min-height: 560px;
    height: clamp(560px, 72vw, 680px);
    border: 0;
    border-radius: 18px;
    background: transparent;
    pointer-events: none;
    user-select: none;
}

.instagram-embed-shell::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.rights-section { margin-top: 4rem; margin-bottom: 5rem; }
.rights-section h2 { font-size: 1.6rem; font-weight: bold; line-height: 1.3; }

footer { text-align: center; padding: 2rem; font-size: 0.8rem; color: #666; }

/* ==========================================================================
   7. ESTILOS PÁGINAS SECUNDARIAS
   ========================================================================== */
body:has(.sub-page-container) {
    padding-top: 0px !important;
}

.sub-page-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 5.5rem 1.5rem 5rem 1.5rem !important;
    width: 100%;
}

.sub-page-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background-color: var(--top-orange);
    z-index: 9999;
}

.sub-page-container .back-arrow-btn {
    display: inline-block;
    font-size: 2.3rem;
    color: #000000;
    text-decoration: none;
    margin-bottom: 0.2rem;
    font-weight: normal;
    transition: transform 0.2s ease;
}

.sub-page-container .back-arrow-btn:hover {
    transform: translateX(-4px);
}

.sub-page-container h1 {
    font-size: 2.4rem;
    font-weight: bold;
    color: #000000;
    margin-top: 0;
    margin-bottom: 2.2rem;
    text-align: left;
    line-height: 1.2;
}

.sub-page-container .mint-detail-box {
    background-color: var(--menta-box);
    border-radius: 25px;
    padding: 2.2rem;
    margin-bottom: 3rem;
}

.sub-page-container .mint-detail-box p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #000000;
    margin-bottom: 1.4rem;
    text-align: left;
}

.sub-page-container .mint-detail-box p:last-child {
    margin-bottom: 0;
}

.sub-page-container .blood-window-logo {
    float: right;
    width: 155px;
    height: auto;
    margin: 1rem 1.5rem 1rem 1.5rem;
}

.sub-page-container .english-detail-section p,
.sub-page-container .english-detail-section p strong,
.sub-page-container .english-detail-section p em {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--top-orange) !important;
    font-style: italic !important;
    margin-bottom: 1.4rem;
    text-align: left;
}

.sub-page-container .english-detail-section p:last-child {
    margin-bottom: 0;
}

.sub-page-container .bottom-detail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}

.sub-page-container .detail-gallery-item {
    width: 100%;
    height: 160px;
    border-radius: 25px;
    background-color: #bbb;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.sub-page-container .detail-gallery-item.item1 { }
.sub-page-container .detail-gallery-item.item2 { }
.sub-page-container .detail-gallery-item.item3 { }
.sub-page-container .detail-gallery-item.item4 { }

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media(max-width: 992px) {
    /* Cabecera sticky: ocupa espacio en el flujo y permanece visible al hacer scroll */
    body { padding-top: 0; }
    .top-line { position: static; }
    .sticky-header {
        position: sticky;
        top: 0;
    }
    .header-content { margin-top: 0; padding: 1rem 0.75rem 0 0.75rem; }
    .brand-logo-img,
    .sticky-header.shrink .brand-logo-img { max-width: 200px; }

    .pill-nav ul { flex-wrap: wrap; }

    .top-gallery,
    .sticky-header.shrink .top-gallery {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        gap: 6px;
        margin: 0 auto 1rem auto;
    }
    .gallery-item,
    .sticky-header.shrink .gallery-item {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }

    .sticky-header.shrink .brand-top-row {
        flex-direction: column;
        justify-content: center;
    }

    .content-section, .about-container, .contact-container {
        scroll-margin-top: calc(var(--header-h, 260px) + 12px);
    }
}

@media(max-width: 768px) {
    .about-container { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; }
    .contact-methods { flex-direction: column; gap: 1.5rem; }
    .instagram-embed-shell { min-height: 500px; }
    .instagram-preview-iframe { min-height: 500px; height: 500px; }
    .aliados-groups { gap: 1.5rem; }
    .logos-group-title { font-size: 0.95rem; }
    
    .logos-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .aliados-groups .row-bottom {
        justify-content: center;
    }
    
    .logo-divider {
        display: none;
    }
    
    .row-top .logo-item,
    .row-bottom .logo-item {
        max-height: 30px;
    }

    .sub-page-container .bottom-detail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .sub-page-container .blood-window-logo {
        float: none;
        display: block;
        width: min(70%, 220px);
        margin: 1rem auto 1.5rem;
    }
}

@media(max-width: 520px) {
    .brand-logo-img,
    .sticky-header.shrink .brand-logo-img { max-width: 150px; }
    .top-gallery,
    .sticky-header.shrink .top-gallery { gap: 4px; }
    .gallery-item,
    .sticky-header.shrink .gallery-item {
        border-radius: 10px;
    }

    .instagram-mockup {
        padding: 10px;
        border-radius: 22px;
    }

    .instagram-embed-shell::after {
        inset: 10px;
    }

    .instagram-embed-shell { min-height: 460px; }
    .instagram-preview-iframe { min-height: 460px; height: 460px; }
}
/* ============================================================
   Clases migradas desde atributos style="" inline en HTML
   ============================================================ */
.subpage-list { margin-left: 40px; }
.subpage-email-link { color: inherit; text-decoration: underline; }
.text-alerta-terracota { color: #e05a47; }
.text-alerta-menta { color: #72be9b; }
.acred-tabla-img { width: 100%; max-width: 900px; display: block; margin: 1.5rem auto; }
