
:root {
  --dark: #0d0d0d;
  --light: #ffffff;
  --accent: #0875f2;
  --grey: #f5f7fa;
  font-size: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; color: var(--dark); background: var(--light); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { width: min(90%, 1080px); margin-inline: auto; }

/* ───────── Navigation ───────── */
.nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 0; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
/* Barra de navegación y logo: por delante del fondo */
.nav-bar {
    position: relative;          /* le permite tener z‑index */
    z-index: 10;                 /* cualquier número >0 sirve */
  }
  
  .logo {
    position: relative;
    z-index: 15;
  }  
/* ───────── Hero ───────── */

/* Header ─── mantiene la referencia */
#hero {
    position: relative;          /* crea un nuevo contexto */
    text-align: center;
    padding: 6rem 0 8rem;
    overflow: hidden;
  }
  
  /* Fondo abstracto: queda detrás de todo */
  .hero-bg {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    opacity: .9;                /* sigue siendo traslúcido */
    pointer-events: none;        /* no interfiere con clics */
    z-index: 0;      
     /* deshabilita slide puro si lo habías aplicado */
               /* capa más baja */
  }
  

/* ───────── Sections ───────── */
.section { padding: 4.5rem 0; }
.center-text { text-align: center; margin-bottom: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; align-items: center; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }



/* ───────── Botón “Ingresa a Plataforma” ───────── */
.btn-platform {
    background: #64a5fa;
    color: #fff;
    padding: .6rem 1.4rem;
    border-radius: 999px;
    /* totalmente redondeado */
    font-weight: 600;
    white-space: nowrap;
    /* evita que se parta en dos líneas */
    transition: background .2s ease;
    margin-left: 1.5rem;
    /* lo separa de los otros links */
}

.btn-platform:hover {
    background: #4594f9;
    /* tono un poco más oscuro al pasar el mouse */
}
/* ───────── Cards ───────── */
.card { background: var(--light); border-radius: 16px; padding: 2rem; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.05); transition: transform .3s; }
.card img { width: 96px; }

@media (min-width: 992px) { /* pantallas grandes */
  .card img { width: 120px; }
}
.card:hover { transform: translateY(-6px); }

/* ───────── Images ───────── */
.about-img, .team-img { width: 105%; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }

/* ───────── Contact ───────── */
.contact-form { max-width: 540px; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-weight: 600; }
.contact-form input, .contact-form textarea { padding: .8rem 1rem; border: 1px solid #ddd; border-radius: 8px; }
.btn-primary { background: var(--accent); color: var(--light); padding: .9rem 1.6rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-primary:hover { opacity: .9; }

/* ───────── Footer ───────── */
.footer { background: var(--grey); padding: 1.4rem 0; text-align: center; font-size: .875rem; }

/* ───────── Animations (ScrollReveal classes) ───────── */
.fade-in { opacity: 0; }
.delay-1 { transition-delay: .2s; }
/* ───────── Equipo: “apoyo sin mentir” ───────── */
.network-note {
    margin-top: 1rem;
    font-style: italic;
    color: #555555;       /* puedes ajustar tono si lo prefieres */
    line-height: 1.7;
  }
/* Responsive typography */






/* ───────── Carousel Productos ───────── */
.carousel {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem auto;
  }
  
  .slide {
    display: none;
    text-align: center;
  }
  
  .slide.active {
    display: block;
    animation: fadeSlide 0.8s ease;
  }
  
  .slide img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }
  
  .slide-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-top: 1rem;
  }
  
  .slide.active .slide-text {
    opacity: 1;
    transform: translateY(0);
  }
  
  .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 2rem;
    padding: 0 .6rem;
    cursor: pointer;
    border-radius: 4px;
    color: var(--dark);
  }
  
  .carousel-control:hover {
    background: var(--accent);
    color: var(--light);
  }
  
  .carousel-control.prev { left: 1rem; }
  .carousel-control.next { right: 1rem; }
  

  .card img {
    width: 80px; /* o el tamaño que necesites */
    margin-bottom: .8rem;
  }
  /* Animación fade entre slides */
  @keyframes fadeSlide {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* ───────── Menú Hamburguesa ───────── */
.menu-toggle {
    display: none;              /* se activará sólo en móvil */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  
  .menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
  }
  

  
  /* Oculta el nav-links por defecto en móvil */
  @media (max-width: 768px) {
    .nav-links {
      position: absolute;
      top: 100%;                /* justo debajo del nav */
      left: 0;
      right: 0;
      background: var(--light);
      flex-direction: column;
      gap: 0;
      display: none;            /* hide */
    }
    .nav-links.show {
      display: flex;            /* show cuando tenga la clase .show */
    }
  
    .nav-links li {
      text-align: center;
      padding: 0.8rem 0;
      border-top: 1px solid rgba(0,0,0,0.05);
    }
  
    .menu-toggle {
      display: flex;            /* sólo en pantallas ≤768px */
    }
  }
  




@media (max-width: 560px) {
  .hero-content h1 { font-size: 2.4rem; }
  .subtitle { font-size: 1.2rem; }
}
