/* ===== TIPOGRAFÍA ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== PALETA SAMAY ===== */
:root {
    --rainforest-green: #2E6E4C;
    --toucan-yellow: #F4C542;
    --andean-blue: #5DA9E9;
    --coastal-sand: #D9CBA3;
    --molecular-violet: #7C5DA3;
    --charcoal-black: #2B2B2B;

    --dark-green: #1E4C35;
    --light-yellow: #F8D775;
    --light-blue: #8BC5FF;
    --light-violet: #9575CD;

    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --shadow-soft: 0 4px 20px rgba(43, 43, 43, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: var(--charcoal-black);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* ===== TIPOS ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--rainforest-green);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.2rem;
    color: var(--rainforest-green);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--toucan-yellow);
    border-radius: 2px;
}

h3 {
    font-size: 1.6rem;
    color: var(--dark-green);
}

h4 {
    font-size: 1.2rem;
    color: var(--rainforest-green);
}

p {
    margin-bottom: 1.3rem;
    font-size: 1.05rem;
    text-align: justify;
    text-justify: inter-word;
}

/* ===== LINKS & BOTONES ===== */
a {
    text-decoration: none;
    color: var(--andean-blue);
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--toucan-yellow);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background-color: var(--rainforest-green);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(46, 110, 76, 0.2);
}

.btn i {
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 110, 76, 0.3);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--andean-blue);
    color: var(--andean-blue);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--andean-blue);
    color: var(--white);
}

.btn-accent {
    background-color: var(--toucan-yellow);
    color: var(--charcoal-black);
    box-shadow: 0 4px 12px rgba(244, 197, 66, 0.2);
}

.btn-accent:hover {
    background-color: #E0B43A;
    color: var(--charcoal-black);
}

/* ===== CONTENEDOR & SECCIONES ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
}

.section-alt {
    background-color: var(--coastal-sand);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 8px 0;
    border-bottom: 3px solid var(--rainforest-green);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-green);
    position: relative;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--toucan-yellow);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-outline {
    padding: 8px 18px;
    margin-left: 8px;
}

.nav-links .btn-outline::after {
    display: none;
}

/* ===== MENÚ MÓVIL ===== */
.mobile-menu-btn {
    display: none;
    font-size: 1.4rem;
    background: none;
    border: none;
    color: var(--dark-green);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: var(--light-bg);
    align-items: center;
    justify-content: center;
}

/* ===== HERO (INDEX) ===== */
/* ===== HERO (INICIO) ===== */
.hero {
    height: 90vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 90px;
    overflow: hidden;
}

/* Imagen de fondo */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Degradado oscuro elegante */
.hero:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(transparent, var(--light-bg));
    z-index: 1;
}

/* Contenido centrado */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

/* Título */
.hero-title {
    color: white;
    font-size: 4rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Subtítulo */
.hero-subtitle {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center ;
    text-justify: auto ;
}

/* Botones */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--rainforest-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-green);
}

/* Responsivo */
@media (max-width: 768px) {
    .hero {
        height: 75vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}


/* ===== PÁGINAS INTERNAS ===== */
.page {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* ===== BANNER PÁGINA (VERSIÓN FINAL) ===== */
.page-banner {
    width: 100%;
    height: 340px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 100px;
    margin-bottom: 25px;
    background-color: #000;
}

/* Imagen del banner */
.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Contenedor del texto */
.page-banner-title {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    z-index: 2;
}

/* Título del banner */
.page-banner-title h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: white;
    text-shadow: 0 3px 10px rgba(0,0,0,0.45);
}
/* ===== SLIDER CON FADE PARA BANNER ===== */
.slider-banner {
    position: relative;
    overflow: hidden;
}

/* Contenedor de imágenes */
.slider-images {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Todas las imágenes se apilan una encima de otra */
.slider-images img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlider 18s infinite;
}

/* Imagen 1 */
.slider-images img:nth-child(1) {
    animation-delay: 0s;
}

/* Imagen 2 */
.slider-images img:nth-child(2) {
    animation-delay: 6s;
}

/* Imagen 3 */
.slider-images img:nth-child(3) {
    animation-delay: 12s;
}

/* Animación del fade */
@keyframes fadeSlider {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    30%  { opacity: 1; }
    35%  { opacity: 0; }
    100% { opacity: 0; }
}

/* ===== BLOQUES (Sobre Samay) ===== */
.page-block {
    background-color: var(--white);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 28px;
    display: block; /* ← ya no es grid */
}

.page-block h2 {
    margin-bottom: 12px;
}

/* ===== BLOQUES MISION Y VISION ===== */
.mv-block {
    background-color: var(--white);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: 0.7fr 1.3fr; /* imagen más angosta */
    gap: 24px;
    align-items: center;
}

/* Imagen */
.mv-block img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* Texto */
.mv-block div {
    text-align: justify;
    text-justify: inter-word;
}


/* ===== GALERÍA (Programas / Index) ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 260px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    background-color: #000;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.03);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 18px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.img-caption h4 {
    margin-bottom: 4px;
    color: var(--white);
}

.img-caption p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== TARJETAS PROGRAMAS ===== */
.program-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 28px;
    align-items: center;
}

.program-card-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 10px;
}


/* ===== SECCIONES ALTERNADAS (subprogramas) ===== */
.alt-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    padding: 26px 24px;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    margin-bottom: 26px;
}

.alt-section.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.alt-img {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    object-fit: cover;
}

/* ===== INSTAGRAM GRID ===== */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.instagram-post {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.instagram-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.insta-img-container {
    height: 200px;
    overflow: hidden;
}

.insta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.instagram-post:hover .insta-img {
    transform: scale(1.03);
}

.insta-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insta-date {
    font-size: 0.85rem;
    color: var(--toucan-yellow);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.insta-text {
    font-size: 0.95rem;
}

.insta-link {
    margin-top: 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.insta-text {
    color: #2B2B2B;
}

/* ===== BLOG / NOTICIAS ===== */
.news-list {
    display: grid;
    gap: 26px;
    margin-top: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 22px 20px;
}

.news-card h2 {
    margin-bottom: 10px;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--molecular-violet);
    margin-bottom: 10px;
}

.news-feature-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 16px;
}

/* ===== FOOTER ESTILO COMPACTO ===== */
footer {
    background-color: #255C40;
    color: var(--white);
    padding: 32px 0 18px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    margin-bottom: 18px;
}

/* Logo más pequeño */
.footer-logo-img {
    height: 90px;
    margin-bottom: 8px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    position: relative;
    color: #FFFFFF; /* blanco puro */
}
.footer-links ul {
    list-style: none;
    padding-left: 0; 
    margin-left: 0;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 4px;
    background-color: var(--toucan-yellow); /* amarillo */
}


/* Enlaces más juntos */
.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
}

/* Contacto con íconos */
.footer-contact p {
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Íconos */
.footer-contact p i {
    color: var(--toucan-yellow);
}


.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--toucan-yellow);
    transform: translateY(-2px);
}

/* ===== COPYRIGHT FINAL ===== */
.copyright {
    margin-top: 10px;
    text-align: center;
    font-size: 0.7rem;             
    color: rgba(245, 245, 245, 0.6);      
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.copyright p {
    margin: 0;
    line-height: 1.4;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero {
        height: 80vh;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .page-banner {
        height: 280px;
    }

    .page-banner-title h1 {
        font-size: 2.2rem;
    }

    .program-card,
    .alt-section {
        grid-template-columns: 1fr;
    }

    .program-card-img,
    .alt-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 18px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        height: 70vh;
        margin-top: 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .page {
        padding-top: 110px;
    }

    .page-block {
        display: block;
        text-align: justify;
        text-justify: inter-word;
    }

    .page-banner {
        height: 240px;
        margin-top: 90px;
    }

    .page-banner-title h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero {
        height: 65vh;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    @media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center; 
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;          
        max-width: 320px;     
        justify-content: center; 
        text-align: center;   
    }
    }

    .gallery-item,
    .insta-img-container,
    .program-card-img,
    .alt-img,
    .news-feature-img {
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
footer .copyright p {
    text-align: center;
    text-justify: auto;
    font-size: inherit; 
}
.section-full {
    width: 100%;
    padding: 90px 0;
    background-color: var(--light-bg);
}

.section-transparent {
    width: 100%;
    padding: 90px 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
}

.section p,
.section-full p,
.page p {
    width: 100%;
    max-width: none;
}
.btn i {
    font-size: 1rem;
    margin-right: 6px;
}
@media (max-width: 992px) {
    .mv-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .mv-block img {
        border-radius: 10px;
    }
}

