/* ======================================================
   1. VARIABLES Y RESET (Base Profesional)
   ====================================================== */
:root {
    --color-primario: #333333;
    --color-fondo: #e6e6e6;
    --color-blanco: #ffffff;

    --color-gris: #e9e8e8;
    --color-gris-suave: #f3f1f1ec;

    --turquesa-claro: #5fbcbf;
    --turquesa: #0F9398;
    --turquesa-oscuro: #0f666b;

    --verde-claro: #e3f8bc;
    --verde: #bcd292;
    --verde-oscuro: #678A6B;

    --magenta-claro: #f772c1;
    --magenta: #E5097F;
    --magenta-oscuro: #c90469;

    --amarillo-claro: #e2da80;
    --amarillo: #e2cf41;
    --amarillo-oscuro: #d1b608;
    --font-main: 'Josefin Sans', sans-serif;
}

/* ========================================
   MODO OSCURO
======================================== */
body.dark {
    --color-primario: #f4f4f4;
    --color-fondo: #242424;
    --color-blanco: #0e0d0d;

    --color-gris: #1a1a1a;
    --color-gris-suave: #2e2e2e;

    --turquesa-claro: #4aa3a6;
    --turquesa: #2f8f92;
    --turquesa-oscuro: #1f6e71;

    --verde-claro: #6f8f72;
    --verde: #5f7f63;
    --verde-oscuro: #4b6750;

    --magenta-claro: #d85aa6;
    --magenta: #c13c8f;
    --magenta-oscuro: #9e2c73;

    --amarillo-claro: #d6c95c;
    --amarillo: #c9b83f;
    --amarillo-oscuro: #a9982c;
}


* {
    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 {
    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 color var(--color-primario);
}

.logo { 
    height: 50px; 
    width: auto;
}

/* Hover logo en modo claro */
body:not(.dark) .logo:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px var(--color-primario));
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
}


body.dark .logo:hover {
    transform: scale(1.15);
   
    filter: drop-shadow(0 0 15px #ffffff) brightness(1.3) contrast(1.2);
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
}

/* Transición general para el logo */
.logo {
    transition: transform 0.3s, filter 0.3s;
}

.hamburger {
    display: none;
    font-size: 32px;
    background: var(--color-blanco);
    border: none;
    color: var(--color-primario);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
}

.nav-links li a {
    text-transform: uppercase;
    letter-spacing: .3px;
    text-decoration: none;
    color: var(--color-primario);
    transition: color 0.3s;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 6px 10px;   
    line-height: 1.1;

    font-size: 13px;
    font-weight: 500;
}

/* Colores Hover Navbar */
.nav-links li:nth-child(1) a:hover { color: var(--magenta); }
.nav-links li:nth-child(2) a:hover { color: var(--verde); }
.nav-links li:nth-child(3) a:hover { color: var(--turquesa); }

.nav-links li:nth-child(4) a:hover { color: var(--amarillo); }
.nav-links li:nth-child(5) a:hover { color: var(--magenta); }

.nav-links li:nth-child(6) a:hover { color: var(--verde); }
.nav-links li:nth-child(7) a:hover { color: var(--turquesa); }

.nav-links li:nth-child(8) a:hover { color: var(--amarillo); }
.nav-links li:nth-child(9) a:hover { color: var(--magenta); }

/* ===== TEST BOTÓN FIJO ===== */
#darkToggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;

  width: 60px;
  height: 60px;

  border-radius: 50%;
  border: none;

  background: var(--color-primario);
  color: var(--color-blanco);
  font-size: 24px;

  cursor: pointer;
}

/* modo oscuro visible */
body.dark {
  background: black !important;
  color: white !important;
}


/* ======================================================
   3. Red de emprendedores
   ====================================================== */
.Red-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* ESTO CENTRA LAS TARJETAS */
  gap: 4rem; /* Espacio entre tarjeta y tarjeta */
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto; /* Centra el contenedor en pantallas gigantes */
}

/* TARJETA INDIVIDUAL */
.Red-card {
  width: 100%; /* Ocupa el ancho disponible */
  max-width: 800px; /* Pero no te pases de 800px */
  border-radius: 20px;
  padding: 40px;
  transition: transform 0.3s ease;
  
  /* Asegura que el contenido interno esté centrado */
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
}

.Red-card p {
    text-align: justify; /* O justify si preferís */
    margin-bottom: 20px;
    width: 100%;
}

.Red-card h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin: 40px 0;
    color: var(--color-primario);
    text-align: center;
}

/* CONTENEDOR */
.slider-instagram {
  position: relative;
  max-width: 800px;
  margin: 40px auto;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%; /* 🔥 IMPORTANTE */
}

.galeria-instagram {
  display: flex;
  gap: 15px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;

  width: 100%;
  max-width: 900px;

  margin: 0 auto; /* 🔥 ESTO LO CENTRA DE VERDAD */
}

/* ocultar scrollbar */
.galeria-instagram::-webkit-scrollbar {
  display: none;
}

/* ITEMS */
.insta-item {
  min-width: 180px;
  flex: 0 0 auto;
  position: relative;
  scrollbar-width: none; /* Firefox */
  border-radius: 15px;
  overflow: hidden;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 0.3s;
}

.insta-item:hover img {
  transform: scale(1.1);
}

/* OVERLAY */
.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: color var(--color-primario);
  color: color var(--color-blanco);
  text-align: center;
  padding: 10px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}

.insta-item:hover .overlay {
  opacity: 1;
}

/* FLECHAS */
.slider-instagram button {
  background: color var(--color-blanco);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  position: absolute;
  z-index: 10;
  box-shadow: 0 4px 12px color var(--color-primario);
}

.prev-insta {
  left: 0;
  transform: translateX(-50%);
}

.next-insta {
  right: 0;
  transform: translateX(50%);
}

/* ======================================================
   5. SLIDER Y VIDEO
   ====================================================== */
.slider {
  position: relative;
  width: 100%;
  /* IMPORTANTE: Altura adaptable o fija controlada */
  height: auto; 
  aspect-ratio: 16/9; /* Mantiene proporción de video */
  max-height: 450px;
  margin: 20px 0;
  border-radius: 15px;
  overflow: hidden;
  background: var(--color-primario);
}

.slide { display: none; width: 100%; height: 100%; }
.slide.active { display: flex; justify-content: center; align-items: center; }

.slide img, .red-video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Muestra imagen completa */
  background: var(--color-primario);
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-blanco);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  display: flex; /* Centrar flecha */
  align-items: center;
  justify-content: center;
  padding-bottom: 4px; /* Ajuste visual */
  box-shadow: 0 4px 12px var(--color-primario);
}

.slider button:hover { background: var(--color-primario); color: var(--color-gris); }
.slider .prev { left: 10px; }
.slider .next { right: 10px; }

/* ========================================
   FLECHAS SLIDER - MODO OSCURO
======================================== */
body.dark .slider button {
  background: var(--color-blanco);
  color: var(--color-primario);
  box-shadow: 0 4px 12px var(--color-primario);
}

body.dark .slider button:hover {
  background: var(--color-primario);
  color: var(--color-blanco);
}


/* ======================================================
   Texto feria 
   ====================================================== */
.feria-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* ESTO CENTRA LAS TARJETAS */
  gap: 4rem; /* Espacio entre tarjeta y tarjeta */
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto; /* Centra el contenedor en pantallas gigantes */
}

/* TARJETA INDIVIDUAL */
.feria-card {
  width: 100%; /* Ocupa el ancho disponible */
  max-width: 800px; /* Pero no te pases de 800px */
  border-radius: 20px;
  padding: 10px;
  transition: transform 0.3s ease;
  
  /* Asegura que el contenido interno esté centrado */
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
}

.feria-card p {
    text-align: justify; /* O justify si preferís */
    margin-bottom: 20px;
    width: 100%;
}

.feria-card h2 {
  box-shadow: 0 10px 20px var(--verde-oscuro);
    background: var(--verde-oscuro);
    color: var(--color-blanco);
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 60px;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.feria-card p:last-of-type {
    text-align: center;
    font-size: 1.2rem;   /* ajustá el tamaño a gusto */
    text-transform: uppercase;
    font-weight: 700;    /* opcional, para que destaque más */
}

/* ======================================================
   9. BOTONES EXTRA (Estilo Profesional)
   ====================================================== */
.participa {
    padding: 50px 20px 50px; /* menos espacio arriba */
    text-align: center;}

.participa-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.btn-participa {
    padding: 18px 35px;
    background: var(--verde-oscuro);
    color: var(--color-blanco);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 280px;
}

.btn-participa:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--verde-oscuro);
    filter: brightness(1.1);
}


/* ======================================================
   9. BOTONES EXTRA (Estilo Profesional)
   ====================================================== */
.extras {
    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-extra2 {
    padding: 18px 35px;
    background: var(--verde);
    color: var(--color-blanco);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 280px;
}

.btn-extra2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--verde-claro);
    filter: brightness(1.1);
}

.btn-extra1 {
    padding: 18px 35px;
    background: var(--verde);
    color: var(--color-blanco);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 280px;
}

.btn-extra1:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--verde-claro);
    filter: brightness(1.1);
}

/* ======================================================
   12. FOOTER 
   ====================================================== */
footer {
    background: var(--color-blanco);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--color-gris-suave);
}

footer .socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

footer .socials img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
}

/* MODO CLARO */
body:not(.dark) footer .socials img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px var(--color-primario));
}

/* MODO OSCURO */
body.dark footer .socials img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px #ffffff) brightness(1.3) contrast(1.2);
}

footer .socials img { width: 40px; height: 40px; transition: transform 0.3s; }
footer .socials img:hover { transform: scale(1.2); }

/* ======================================================
   13. ANIMACIONES KEYFRAMES
   ====================================================== */

@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: var(--color-blanco);
        box-shadow: 0 10px 15px var(--color-primario);
        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 var(--color-gris-suave); }
    .nav-links li a { display: block; padding: 20px 0; font-size: 1.1rem; }

    /* Ajuste de Contenedores y Tarjetas */
    .cursos-container {
        padding: 10px; /* Menos padding lateral en celular */
        gap: 2rem;
    }

    .curso-card {
        padding: 25px 15px; /* Menos padding interno */
        border-radius: 15px;
    }

    .curso-card h2 { font-size: 1.5rem; }
    
    /* El slider se adapta */
    .slider { max-height: 250px; }
    
    /* Botones de filtro se apilan mejor */
    .categoria-buttons { gap: 10px; }
    .categoria-btn { width: 100%; max-width: 300px; }

}