.watermark-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/fondo-escudo.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: -2;
}

.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-cream);
    opacity: 0.9;
    z-index: -1;
}

/* Reset y estilos base */
:root {
    --background-cream: #fff8f0;
    --text-color: #333333;
    --text-light: #666666;
    
    /* Colores pastel para las temáticas */
    --color-orange: #ffb347;
    --color-blue: #272CD9;
    --color-green: #F80000;
    --color-pink: #E8F71F;
    --color-purple: #C673C2;
    --color-yellow: #ECE551;
    --color-mint: #D03DD0;
    --color-lavender: #63C8FB;
    --color-peach: #67EA40;
    --color-sky: #F195B0;
    --color-coral: #FEC3D3;
    --color-lilac: #06D600;
    --color-botones: #a7a7a7;
    --color-indigo: #A7F2A0;
    --color-teal: #C9F4FF;
    --color-salmon: #6FF767;
    --color-olive: #003F80;

    /* Fuentes personalizadas */
    --font-titulo: 'Oregano', cursive;
    --font-lema: 'Mr Dafoe', cursive;
    --font-texto: 'Quicksand', sans-serif;
    --font-subtitulo: 'Quicksand', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-texto);
    font-weight: 400;
    background-color: var(--background-cream);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Tipografía especial */
h1, h2, h3, h4 {
    font-family: var(--font-titulo);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.3;
}

/* Estructura principal */
.main-content {
    padding: 2rem;
    transition: margin 0.3s ease;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
}

/* Encabezado con nuevas tipografías */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.main-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
}

.programa-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.programa-title .small-title {
    font-family: var(--font-subtitulo);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    display: block;
}

.programa-title h1 {
    font-family: var(--font-titulo);
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
    line-height: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    animation: zoomIn 1s ease-out forwards;
}

.typing-slogan-container {
    min-height: 3rem;
    margin-top: 0.5rem;
    transition: all 0.5s ease;
}

.programa-title .slogan {
    font-family: var(--font-subtitulo);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-orange);
    display: block;
    min-height: 3rem;
}

.typing-slogan {
    font-family: var(--font-subtitulo);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-orange);
    margin-top: 0.5rem;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
    transition: all 0.1s ease;
    opacity: 1;
    border-right: none;
}

/* Lema destacado */
.lema-destacado {
    font-family: var(--font-lema);
    font-size: 1.8rem;
    color: var(--color-orange);
    text-align: center;
    margin: 2rem 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transform: none !important;
}

/* Iconos temáticos */
.iconos-tematicos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.icono-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icono-item i {
    font-size: 2rem;
    color: var(--color-orange);
    background-color: rgba(255, 179, 71, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: coinFlip 1.5s ease-out forwards;
    transform-style: preserve-3d;
}

.icono-item:hover i {
    background-color: white;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.icono-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Retrasos para cada ícono */
.icono-item:nth-child(1) i { animation-delay: 0.2s; }
.icono-item:nth-child(2) i { animation-delay: 0.4s; }
.icono-item:nth-child(3) i { animation-delay: 0.6s; }
.icono-item:nth-child(4) i { animation-delay: 0.8s; }
.icono-item:nth-child(5) i { animation-delay: 1s; }

/* Menú hamburguesa */
.menu-btn {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
    cursor: pointer;
    width: 30px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-btn__burger {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

/* Menú lateral */
.sidebar {
    width: 300px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -300px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.sidebar-header h3 {
    margin-top: 0.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 0.3rem;
}

.sidebar-menu a {
    display: flex;
    padding: 0.8rem 1.8rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    align-items: center;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--color-orange);
    color: var(--text-color);
}

.sidebar-menu i {
    font-size: 0.95rem;
    min-width: 25px;
    margin-right: 0.5rem;
}

/* PESTAÑAS DE INFORMACIÓN - VERSIÓN LIMPIA */
.proyecto-info {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    overflow: hidden;
    opacity: 0;
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.info-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    font-size: 1.15rem;
    font-family: var(--font-texto);
}

.tab-btn.active {
    color: var(--color-orange);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-orange);
}

.tab-btn:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.info-content {
    padding: 2rem;
    display: none;
    font-family: var(--font-texto);
}

.info-content.active {
    display: block;
}

.info-content p {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.icon-list {
    list-style: none;
    margin-top: 1rem;
}

.icon-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-family: var(--font-texto);
}

.icon-list i {
    color: var(--color-orange);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Sección institucional */
.institucional-info {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    font-family: var(--font-texto);
}

.institucional-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.institucional-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-orange);
    border-radius: 2px;
}

.institucional-info p {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Objetivos */
.objetivos-section {
    margin-bottom: 3rem;
}

.objetivos-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
}

.objetivos-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-orange);
    border-radius: 2px;
}

.objetivos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    opacity: 0;
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.objetivo-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-texto);
    opacity: 0;
    animation: slideInFromRight 0.8s ease-out forwards;
}

.objetivo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.objetivo-card i {
    font-size: 2rem;
    color: var(--color-orange);
    margin-bottom: 1rem;
    display: inline-block;
}

.objetivo-card p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.objetivo-card:nth-child(1) { animation-delay: 0.3s; }
.objetivo-card:nth-child(2) { animation-delay: 0.4s; }
.objetivo-card:nth-child(3) { animation-delay: 0.5s; }
.objetivo-card:nth-child(4) { animation-delay: 0.6s; }
.objetivo-card:nth-child(5) { animation-delay: 0.7s; }
.objetivo-card:nth-child(6) { animation-delay: 0.8s; }

/* Colecciones */
.colecciones-section {
    margin-bottom: 3rem;
}

.colecciones-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    font-family: var(--font-titulo);
}

.colecciones-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-orange);
    border-radius: 2px;
}

/* Tarjetas de colecciones */
.temas-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 0;
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.tema-card {
    perspective: 1000px;
    height: 260px;
    position: relative;
    opacity: 0;
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: calc(0.3s + (0.1s * var(--i)));
}

.tema-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.tema-card:hover .tema-card-inner {
    transform: rotateY(180deg);
}

.tema-card-front, .tema-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.tema-card-back {
    background-color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.tema-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tema-icono {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100% - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
}

.tema-titulo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background-color: white !important;
    color: var(--text-color) !important;
    font-weight: 600;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-family: var(--font-texto);
}

/* Colores para cada temática */
.tema-card[data-id="consumo"] .tema-icono { background-color: var(--color-blue); }
.tema-card[data-id="ludopatia"] .tema-icono { background-color: var(--color-peach); }
.tema-card[data-id="adicciones"] .tema-icono { background-color: var(--color-green); }
.tema-card[data-id="trastornos-alimenticios"] .tema-icono { background-color: var(--color-lavender); }
.tema-card[data-id="violencia-domestica"] .tema-icono { background-color: var(--color-mint); }
.tema-card[data-id="abuso"] .tema-icono { background-color: var(--color-yellow); }
.tema-card[data-id="bullying"] .tema-icono { background-color: var(--color-orange); opacity: 0.8; }
.tema-card[data-id="violencia-genero"] .tema-icono { background-color: var(--color-purple); }
.tema-card[data-id="embarazo"] .tema-icono { background-color: var(--color-sky); }
.tema-card[data-id="educacion-sexual"] .tema-icono { background-color: var(--color-coral); }
.tema-card[data-id="educacion-socioemocional"] .tema-icono { background-color: var(--color-pink); }
.tema-card[data-id="cuidado-ambiental"] .tema-icono { background-color: var(--color-lilac); }
.tema-card[data-id="cuidado-animal"] .tema-card-front .tema-icono { background-color: var(--color-indigo); }
.tema-card[data-id="higiene"] .tema-card-front .tema-icono { background-color: var(--color-teal); }
.tema-card[data-id="saludable"] .tema-card-front .tema-icono { background-color: var(--color-salmon); }
.tema-card[data-id="educacion-vial"] .tema-card-front .tema-icono { background-color: var(--color-olive); }

/* Modales */



/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 1.5rem;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}

.close-modal:hover {
    color: var(--text-color);
}

/* PDF Viewer */
.pdf-viewer-container {
    display: flex;
    flex-grow: 1;
    position: relative;
    margin-top: 1rem;
}

.pdf-viewer {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 70vh;
}

.pdf-iframe {
    width: 100%;
    flex-grow: 1;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #f9f9f9;
}

.page-counter {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: var(--font-texto);
}

/* Botón de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    border: none !important;
    text-align: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none !important;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Footer */
.main-footer {
    background-color: white;
    color: var(--text-color);
    padding: 3rem 0 1.5rem;
    width: 100%;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    font-family: var(--font-texto);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.footer-contact i {
    margin-top: 0.2rem;
    flex-shrink: 0;
    color: var(--color-orange);
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* Efectos para cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

body.menu-open .menu-btn__burger {
    background: transparent;
}

body.menu-open .menu-btn__burger::before {
    transform: rotate(45deg);
    background: var(--text-color);
}

body.menu-open .menu-btn__burger::after {
    transform: rotate(-45deg);
    background: var(--text-color);
}

/* ANIMACIONES */
@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes coinFlip {
    0% { transform: rotateY(0) scale(0.5); opacity: 0; }
    50% { transform: rotateY(180deg) scale(1.2); opacity: 1; }
    100% { transform: rotateY(360deg) scale(1); opacity: 1; }
}

@keyframes slideInFromRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .temas-grid {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
        padding-top: 5rem;
    }

    .programa-title h1 {
        font-size: 4rem;
    }
    
    .programa-title .small-title,
    .programa-title .slogan {
        font-size: 1.5rem;
    }
    
    .lema-destacado {
        font-size: 2.8rem;
    }

    .info-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .tab-btn.active::after {
        width: 3px;
        height: 100%;
        left: 0;
        top: 0;
        bottom: auto;
    }

    .temas-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
        gap: 1rem;
    }

    .objetivos-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
        padding: 1rem;
    }

    .footer-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .programa-title h1 {
        font-size: 3.2rem;
    }
    
    .programa-title .small-title,
    .programa-title .slogan {
        font-size: 1.2rem;
    }
    
    .lema-destacado {
        font-size: 2.2rem;
    }

    .main-logo {
        max-width: 140px;
    }

    .tema-icono {
        height: 120px;
        padding: 1rem;
        font-size: 3rem;
    }

    .tema-titulo {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .temas-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}