/* ======================================================
   1. VARIABLES Y RESET (Base Profesional)
   ====================================================== */
:root {
    --color-primario: #2c3e50;
    --color-fondo: #f4f4f4;
    --color-blanco: #ffffff;
    --turquesa: #0F9398;
    --verde: #678A6B;
    --magenta: #E5097F;
    --amarillo: #F7D803;
    --font-main: 'Josefin Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-fondo);
    color: var(--color-primario);
    padding-top: 80px; /* Espacio para el navbar fijo */
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
    margin: 0;
    text-align: center;
}

p {
    font-weight: 400;
}

/* Clases de utilidad para centrar */
.titulo-seccion, 
.hero-text h1, 
.hero-text p, 
.contacto-texto, 
.testimonio p {
    text-align: center;
}

/* Espaciado general entre secciones */
section {
    padding: 20px 0;
    margin: 0;
}

/* ======================================================
   2. NAVBAR (Menú Superior)
   ====================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-blanco);
    padding: 10px 60px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { 
    height: 50px; 
    width: auto;
    /* Animación definida al final del archivo */
    animation: emocionArgentina 2s ease-in-out infinite;
    transition: all 0.3s ease;
    will-change: transform, filter;
}

/* Hover Logo: Se aquieta y brilla */
.logo:hover {
    animation: none;
    filter: drop-shadow(0 0 15px #75AADB);
    transform: scale(1.15);
    cursor: pointer;
}

.hamburger {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: color 0.3s;
}

/* Colores Hover Navbar */
.nav-links li:nth-child(1) a:hover,
.nav-links li:nth-child(3) a:hover,
.nav-links li:nth-child(7) a:hover { color: var(--magenta); }

.nav-links li:nth-child(2) a:hover,
.nav-links li:nth-child(8) a:hover { color: var(--verde); }

.nav-links li:nth-child(4) a:hover,
.nav-links li:nth-child(6) a:hover { color: var(--amarillo); }

.nav-links li:nth-child(5) a:hover,
.nav-links li:nth-child(10) a:hover { color: var(--turquesa); }

/* ======================================================
   3. BANNER VERDE (Avisos)
   ====================================================== */
.banner {
    background: #E3F8BC;
    color: #000;
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner a.btn-banner {
    background: #BCD292;
    color: #000;
    padding: 10px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.banner a.btn-banner:hover {
    background: #A4BC7A;
    transform: scale(1.05);
}

/* ======================================================
   4. HERO (Sección Principal)
   ====================================================== */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
    text-align: center;
    color: #333;
    padding: 20px;
    /* CORRECCIÓN DE RUTA DE IMAGEN */
    background: url('../Imagenes/Banner.png') center/cover no-repeat; 
    position: relative;
}

.hero-text h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-text p { font-size: 1.5rem; }

/* ======================================================
   5. SECCIÓN INSCRIPCIÓN
   ====================================================== */
.inscripcion {
    background-color: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
}

.inscripcion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-placeholder {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 16 / 9;
    background-color: #d9d9d9;
    border: 4px solid #BCD292;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--verde);
}

.inscripcion-texto { 
    max-width: 500px; 
    text-align: center;
}

.inscripcion-texto h2 {
    font-size: 1.8rem;
    background: #BCD292;
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.inscripcion-texto ul {
    text-align: left;
    display: inline-block;
}

.btn-inscribite {
    display: inline-block;
    padding: 12px 30px;
    background: #BCD292;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-inscribite:hover { transform: scale(1.05); }

/* ======================================================
   6. CURSOS (Filtros y Grid)
   ====================================================== */
.titulo-seccion, .titulo-cursos {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin: 40px 0;
    color: #333;
    text-align: center;
}

.categoria-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.categoria-btn {
    font-family: var(--font-main);
    color: #fff;
    font-weight: 600;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s;
    font-size: 1rem;
}

.categoria-btn:hover, .categoria-btn.active { 
    transform: scale(1.05); 
    opacity: 0.9; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Colores Filtros */
.categoria-btn[data-categoria="diseno"]     { background: var(--magenta); }
.categoria-btn[data-categoria="grafica"]    { background: #BCD292; }
.categoria-btn[data-categoria="marketing"]  { background: #5FBCBF; }
.categoria-btn[data-categoria="digital"]    { background: var(--amarillo); color: #555; }

/* GRID DE CURSOS */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.course-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    text-align: center;
}

.course-card:hover { transform: translateY(-5px); }
.course-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

/* Botones dentro de cards */
.btn-masinfo {
    margin-top: auto; 
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid transparent;
}

/* TABS LÓGICA VISUAL */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ======================================================
   7. QUIÉNES SOMOS & TESTIMONIOS
   ====================================================== */
#quienes { background: #fff; padding: 60px 20px; text-align: center; }

.quienes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.quienes-texto { flex: 1 1 500px; text-align: justify; }

.titulo-quienes {
    background: #33b5aa;
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.video-placeholder-quienes {
    flex: 1 1 400px;
    aspect-ratio: 16/9;
    background: #eee;
    border: 4px solid var(--turquesa);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.titulo-experiencias {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.testimonios-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.testimonio {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonio img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.nombre-testimonio.turquesa { color: var(--turquesa); font-weight: bold;}
.nombre-testimonio.verde { color: var(--verde); font-weight: bold;}
.nombre-testimonio.magenta { color: var(--magenta); font-weight: bold;}

/* ======================================================
   8. INSTAGRAM
   ====================================================== */
#posteos { padding: 60px 20px; background: #f9f9f9; text-align: center; }
.titulo-posteos {
    background: var(--magenta);
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.instagram-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.insta-wrap {
    flex: 0 1 300px;
    height: 500px; 
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.insta-wrap iframe { width: 100%; height: 100%; border: none; }

/* ======================================================
   9. BOTONES EXTRA (Estilo Profesional)
   ====================================================== */
.extras {
    background-color: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

.extras-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.btn-extra {
    padding: 18px 35px;
    /* Degradado Turquesa a Verde */
    background: linear-gradient(135deg, #0F9398 0%, #678A6B 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(15, 147, 152, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 280px;
}

.btn-extra:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 147, 152, 0.4);
    filter: brightness(1.1);
}

/* ======================================================
   10. CONTACTO (Estilo Profesional)
   ====================================================== */
#contacto {
    background: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.titulo-seccion-contacto {
    background: #BCD292;
    color: white;
    padding: 12px 40px;
    border-radius: 50px;
    display: inline-block;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.contacto-texto {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

form {
    background: #fff;
    max-width: 550px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input, form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    background-color: #fbfbfb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: var(--turquesa);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(15, 147, 152, 0.1);
}

form textarea { resize: vertical; min-height: 120px; }

form button {
    background: #333;
    color: #fff;
    border: none;
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    align-self: center;
    width: 100%;
    max-width: 300px;
}

form button:hover {
    background: var(--magenta);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(229, 9, 127, 0.3);
}

/* ======================================================
   11. MAPA
   ====================================================== */
.mapa {
    padding: 40px 20px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    width: 100%;
}

.mapa-container {
    width: 100%;
    max-width: 1200px; 
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ======================================================
   12. FOOTER & CONTADOR
   ====================================================== */
footer {
    background: #ffffff;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

footer .socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

footer .socials img { width: 40px; height: 40px; transition: transform 0.3s; }
footer .socials img:hover { transform: scale(1.2); }

.contador-container {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f9f9f9;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.contador-numero {
    font-weight: 700;
    color: var(--turquesa);
    font-size: 1.1rem;
}

/* ======================================================
   13. ANIMACIONES KEYFRAMES
   ====================================================== */
@keyframes emocionArgentina {
    0% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(117, 170, 219, 0)); }
    20% { transform: scale(1.1) rotate(-3deg); filter: drop-shadow(0 0 20px rgba(117, 170, 219, 0.9)); }
    40% { transform: scale(1.15) rotate(3deg); filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1)); }
    60% { transform: scale(1.1) rotate(-2deg); filter: drop-shadow(0 0 20px rgba(117, 170, 219, 0.9)); }
    100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0 rgba(117, 170, 219, 0)); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   14. RESPONSIVE (CELULARES Y TABLETS)
   ====================================================== */
@media (max-width: 992px) {
    
    /* NAV MÓVIL (ANTIBALAS) */
    .navbar { padding: 10px 20px !important; }
    .hamburger { display: block; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 0;
        max-height: calc(100vh - 80px); 
        overflow-y: auto; 
    }

    .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links li { width: 100%; text-align: center; border-bottom: 1px solid #f0f0f0; }
    .nav-links li a { display: block; padding: 20px 0; font-size: 1.1rem; }

    /* HERO (INICIO) - ANTI CORTE */
    .hero {
        height: auto !important;
        min-height: 500px;
        background-position: center top !important;
        padding: 120px 20px 60px 20px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-text h1 { font-size: 2.2rem !important; line-height: 1.2; }
    .hero-text p { font-size: 1.1rem !important; margin-top: 15px; }

    /* CONTENEDORES RESPONSIVE */
    .inscripcion-container, 
    .quienes-container,
    .texto-centro {
        width: 100% !important;
        padding: 0 15px !important;
    }

    .video-placeholder, 
    .video-placeholder-quienes {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
    }

    /* BOTONES EXTRA MÓVIL */
    .extras-btns { flex-direction: column; gap: 20px; }
    .btn-extra { width: 100%; max-width: 350px; }

    .titulo-seccion-contacto { font-size: 1.5rem; padding: 10px 30px; }

    .mapa-container { height: 300px; border-radius: 15px; }
}