/* ======================================================
   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. BANNER VERDE (Avisos)
   ====================================================== */
.banner {
    background: var(--turquesa-claro);
    color: var(--color-primario);
    text-align: center;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner a.btn-banner {
    text-transform: uppercase;
    background: var(--turquesa-claro);
    color: var(--color-primario);
    padding: 10px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 6px var(--color-primario);
}

.banner a.btn-banner:hover {
    background: var(--turquesa-oscuro);
    transform: scale(1.05);
    box-shadow: 0 10px 20px var(--turquesa);
}

.Red-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* TARJETA */
.Red-card {
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.Red-card p {
  text-align: justify;
  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;
}

.Red-card p:last-of-type {
  text-align: center;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 700;
}

/* PERFIL */
.perfil {
  text-decoration: none;
  color: var(--color-primario);
  transition: 0.3s;
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.perfil img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.perfil span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.perfil:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;

  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px;

  background: transparent; /* 👈 clave */
}

/* slides */
.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMAGENES */
.slide img {
  width: 100%;
  height: 100%;

  object-fit: cover; /* 👈 ESTA ES LA CLAVE REAL */
  display: block;
}

/* flechas */
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 36px;
  height: 36px;

  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: rgba(255,255,255,0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10;
}

.slider .prev { left: 10px; }
.slider .next { right: 10px; }

/* MOBILE */
@media (max-width: 768px) {
  .slider {
    max-height: 220px;
    aspect-ratio: 16 / 9;
  }
}

/* ========================================
   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: 1.5rem; /* Espacio entre tarjeta y tarjeta */
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto; /* Centra el contenedor en pantallas gigantes */
  margin-top: 20px;
}

/* 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(--turquesa-oscuro);
    background: var(--turquesa);
    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(--turquesa-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(--turquesa);
    filter: brightness(1.1);
}

.colaboradores{
  width: 100%;
  padding: 40px 20px;
  overflow: hidden;
}

.colaboradores h2{
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.swiper{
  width: 100%;
}

.swiper-slide{
  display: flex;
  justify-content: center;
}

.perfil{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.perfil img{
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid color var(--color-blanco);
  box-shadow: 0 4px 10px color var(--color-primario);
  transition: .3s;
}

.perfil img:hover{
  transform: scale(1.08);
}

.perfil span{
  margin-top: 10px;
  color: color var(--color-primario);
  font-size: .9rem;
  text-align: center;
}

/* MOBILE */
@media (max-width: 480px){

  .perfil img{
    width: 90px;
    height: 90px;
  }

  .perfil span{
    font-size: .75rem;
  }

}

/* MOBILE = carrusel */
@media (max-width: 768px){

  .swiper{
    width: 100%;
    overflow: hidden;
  }

  .swiper-slide{
    display: flex;
    justify-content: center;
  }

}

@media (min-width: 769px){
 
  .swiper{
    overflow: visible !important;
  }

.swiper-wrapper{
  display: grid !important;

  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));

  gap: 30px;
  width: 100%;
}

  .swiper-slide{
    width: 100% !important;
  }

}

/* ======================================================
   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); }
}

@media (max-width: 992px) {
    
    .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;
    }

}
