* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fondo animado */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* detrás de todo */
  background: black; /* de base para tu glassmorphism */
}


/* --- Estilos generales del header --- */
/* --- Header general --- */
header {
position: fixed; /* o fixed si quieres que siempre quede fijo al hacer scroll */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px;
  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.15); /* rojo translúcido */
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Logo --- */
header .logo img {
  height: 90px;
  margin-left: 40px;
}

/* --- Menú principal --- */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav ul li {
    font-size: 20px;
  position: relative;
}

.main-nav > ul > li {
  margin-left: 20px;
}

.main-nav a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.main-nav a:hover {
  background: rgba(255, 0, 0, 0.25);
}

/* --- Submenús --- */
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  z-index: 1000;
  border-radius: 10px;
  background: rgba(255, 0, 0, 0.1);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.main-nav ul ul li {
  width: 70%;
}

.main-nav ul ul a {
  padding: 10px;
  color: #eee;
}

.main-nav ul ul a:hover {
  background: rgba(255, 0, 0, 0.25);
}

/* --- Mostrar submenús al hover --- */
.main-nav ul li:hover > ul {
  display: block;
}

/* --- Sub-submenús (nivel 3) --- */
.main-nav ul ul ul {
  left: 100%;
  top: 0;
  border-radius: 10px;
}



body {
      overflow-x: hidden;
      margin: 0;
      font-family: Arial, sans-serif;
      background: linear-gradient(270deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee);
      background-size: 800% 800%;
      animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
    

/* ===== SLIDER FULLSCREEN ===== */
.slider {
  position: relative;
  width: 100vw; /* exactamente el ancho visible de la ventana */
  height: 100vh; /* toda la altura de la ventana */
  margin: 0;
  overflow: hidden;
  display: flex;
}

.slides {
  display: flex;
  width: 400%; /* 3 imágenes */
  height: 100%;
  animation: slide 16s infinite;
}

.slide {
  flex: 0 0 100%;
  position: relative;
  text-align: center;
  height: 100%; /* 👈 fuerza al slide a ocupar todo el alto */
}

/* Imágenes dentro del slide */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* evita deformación */
  display: block;
  filter: brightness(0.7);
}

/* Texto centrado */
.slide .text {
  position: absolute;
  bottom: 50%;        /* lo llevamos cerca de la parte inferior */
  left: 50%;
  transform: translateX(-50%); 
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  max-width: 85%; /* no se sale de la imagen */
}

/* Estilo para títulos */
.slide .text h2 {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  margin-bottom: 0.3rem;
}

/* Estilo para párrafos */
.slide .text p {
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  line-height: 1.3;
}

/* ===== CAPTION centrado con glassmorphism ===== */
.caption {
  position: absolute;
  bottom: 50%; /* colocamos en el centro vertical */
  left: 50%;
  transform: translate(-50%, 90%); /* centro perfecto */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 30px;
  border-radius: 15px;
  max-width: 80%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.caption h2 {
  margin: 0;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.4;
}

.caption p {
  margin-top: 10px;
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.5;
}

/* ===== ANIMACIÓN ===== */
@keyframes slide {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(0); }

  25%  { transform: translateX(-100%); }
  45%  { transform: translateX(-100%); }

  50%  { transform: translateX(-200%); }
  70%  { transform: translateX(-200%); }

  75%  { transform: translateX(-300%); }
  95%  { transform: translateX(-300%); }

  100% { transform: translateX(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .caption {
    max-width: 90%;
    padding: 15px 20px;
  }

  .caption h2 {
    font-size: clamp(16px, 4vw, 22px);
  }

  .caption p {
    font-size: clamp(12px, 3.5vw, 16px);
  }
}

    
     /* ===== SECCIÓN DE LOGOS ===== */
.logos-section {
  padding: 70px  40px 10px;
  background: rgba(255, 255, 255, 0.05); /* translúcido */
    background: rgba(255, 255, 255, 0.05); /* translúcido */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Grid de logos */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr); /* 8 columnas */
  gap: 15px;
  justify-items: center;
}

/* Cada logo como tarjeta con glassmorphism + rojo */
.logo-item {
  width: 100px;
  height: 100px;
  border: 2px solid #fff; /* rojo intenso */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
  position: relative;
  overflow: hidden;
}

/* Glow rojo en hover */
.logo-item:hover {
  transform: scale(1.05);
  border-color: #fff;
  box-shadow: 0 0 15px rgba(179, 179, 179, 0.6);
}

/* Barra superior roja minimalista */
.logo-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #fff;
  border-radius: 12px 12px 0 0;
}

/* El enlace dentro del logo */
.logo-item a {
  display: flex; 
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none; /* quita subrayado */
}

/* Imagen dentro */
.logo-item img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  z-index: 1;
  display: block;
}




.info-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 10px 20px;
  background: url('') no-repeat center center/cover;
  min-height: 100vh;
  align-items: center;
  background: rgba(255, 255, 255, 0.05); /* translúcido */

}

.card {
  width: 300px;
  height: 300px;
  perspective: 1200px; /* profundidad para el flip */
  padding: 0px 30px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
  transform-origin: center center; /* centra la animación */
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, 
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  

  /* efecto glass */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.card-front h2 {
  font-size: 24px;
  font-weight: bold;
}

.card-back {
  transform: rotateY(180deg);
  overflow-y: auto;
  overflow: hidden;

}

.card-back p,
.card-back ul {
  font-size: 12.8px;
  line-height: 1.5;
  font-weight: bold;
}

.card-back ul {
  list-style: none;
  padding: 0;
}

.card-back ul li {
  margin: 8px 0;
}



/* Sección completa en negro */
.services-section {
    background: rgba(255, 255, 255, 0.05); /* translúcido */
  padding: 5px 20px;
  text-align: center;
}

/* Título centrado con glassmorphism */
.services-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 50px;
  text-transform: uppercase;
  color: #fff; /* texto negro sólido */
  
  display: inline-block;
  padding: 12px 28px;
  border-radius: 16px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}

/* Grid de servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 0 5px;
}

/* Cada tarjeta de servicio */
.service-item {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: scale(1.03);
}

/* Overlay glassmorphism */
.service-item .overlay {
  background: rgba(0,0,0,0);
  color: #fff;
  padding: 15px;
  width: 100%;
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Títulos dentro de las cards */
.service-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

/* Párrafos */
.service-item p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #fff;
}


/* ===== SECCIÓN CONSULTORÍA ===== */
.consulting-section {
  position: relative;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

/* ===== TÍTULO ===== */
.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 50px;
  text-transform: uppercase;
  color: #fff;

  /* Glow rojo */
  text-shadow: 0 0 10px rgba(255,255,255,0.25),
               0 0 10px rgba(255,255,255,0.25);

  /* Efecto glass container */
  display: inline-block;
  padding: 12px 28px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}

/* ===== GRID ===== */
.consulting-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* ===== CARD ITEM ===== */
.consulting-item {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.consulting-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3), 0 0 12px rgba(255,255,255,0.35);
}

.consulting-item .img-box {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.consulting-item .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consulting-item .content {
  padding: 18px 15px;
  text-align: center;
}

.consulting-item h3 {
  font-size: 18px;
  margin: 8px 0;
  font-weight: bold;
  color: white;
}

.consulting-item p {
  font-size: 14px;
  color: white;
  margin: 0;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .consulting-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .consulting-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

.site-footer {
  background: #222;
  color: #eee;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
}

.site-footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.site-footer .social a {
  color: #eee;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.site-footer .social a:hover {
  color: #ffcc00; /* cambia al color corporativo */
}

.site-footer .contact p,
.site-footer .copy p {
  margin: 0;
}

.site-footer i {
  font-size: 25px;   /* iconos más grandes */
  margin: 0 12px;
  color: inherit;
  transition: color 0.3s ease;
}

.site-footer i:hover {
  color: red;  /* hover rojo */
}



/*fuente */
:root{
  /* fallback stack */
  --sans-fallback: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Uso global para todo el sitio */
html, body {
  font-family: "IBM Plex Sans", var(--sans-fallback);
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Titulares más marcados */
h1, h2, h3 {
  font-family: "IBM Plex Sans", var(--sans-fallback);
  font-weight: 600; /* o 700 si quieres más contraste */
  margin: 0 0 0.5rem 0;
}

/* Menú / navegación */
nav a, nav span {
  font-family: "IBM Plex Sans", var(--sans-fallback);
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Mantener Times New Roman SOLO para el logo si lo deseas */
.logo {
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
}

/* CHILDRENS SECTION*/

/* ===== GLASS SECTION ===== */
.glass-section {
  background: url('img/bg/bg-pattern.jpg') no-repeat center/cover; /* opcional */
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  margin-top: 90px;
}

.glass-container {
  max-width: 800px;
  text-align: left;
  padding: 40px;
  border-radius: 20px;

  /* Glassmorphism core */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);

  /* Shadow y efecto flotante */
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.glass-container:hover {
  transform: translateY(-5px);
}

.glass-container h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff; /* texto blanco para contrastar */
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.glass-container h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff; /* texto blanco para contrastar */
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.glass-container p {
  font-size: 14px;
  line-height: 1.6;
  color: #f0f0f0;
}

.glass-container p {
  text-align: center;
  font-size: 20px;
}

.glass-container h2 {
  text-align: center;
}

.glass-container ul {
  font-size: 20px;
 color: #fff;
}

.glass-container li {
 color: #fff;
}

.glass-container ol {
 font-size: 20px;
}


.responsive-img {
  max-width: 85%; /* nunca será más grande que el ancho de la pantalla */
  height: auto;    /* mantiene la proporción original */
  display: block;  /* evita espacios raros debajo */
  margin: 0 auto;  /* centra la imagen */
}

.contact_container {
  display: flex;         /* Activa flexbox */
  gap: 20px;             /* Espacio entre los divs */
}

.contact_container__box {
  flex: 1;               /* Para que ambos ocupen el mismo ancho */
  padding: 15px;
  border-radius: 10px;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 32px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 20px;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    right: 50;
    background: rgba(0,0,0,0.8);
    width: 70%;
    padding: 20px;
    flex-direction: column;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .menu-toggle {
    display: block;
  }

  /* Opciones principales */
  .main-nav > ul > li > a {
    font-size: 18px; /* más grandes en móvil */
  }

  /* Submenús */
  .main-nav ul ul a {
    font-size: 16px; /* tamaño para sub-opciones */
    padding: 12px 15px;
  }

}

@media (max-width: 768px) {
  .slider {
    height: 50vh;       /* usar porcentaje de vista, no fijo */
    min-height: 300px;  /* asegurar no tan pequeño */
  }
  .caption {
    max-width: 95%;
    padding: 10px 15px;
  }
  .caption h2 {
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .consulting-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-item {
    width: 80px;
    height: 80px;
  }
  .consulting-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== INFO SECTION responsive ===== */
@media (max-width: 768px) {
  .info-section {
    display: flex;
    flex-direction: column;   /* 🔥 apiladas en columna */
    align-items: center;      /* centradas */
    gap: 30px;                /* espacio entre cada tarjeta */
    padding: 40px 20px;
    margin-bottom: 60px;
  }

    @media (max-width: 300px) {
    header {
      padding: 10px 15px;
    }

    header .logo img {
      height: 60px;
      margin-left: 10px;
    }

    .menu-toggle {
      margin-right: 10px;
      font-size: 28px;
    }
  }

  .card {
    width: 100%;              /* ocupar todo el ancho */
    max-width: 400px;         /* límite para que no se estiren demasiado */
    height: 300px;            /* mantenemos altura para que el flip se vea bien */
    margin: 0 auto;           /* centradas */
  }

  .card-inner {
    height: 100%;             /* el flip sigue funcionando */
  }

  .card-front,
  .card-back {
    min-height: 100%;         /* ambas caras ocupan la misma altura */
    padding: 20px;
  }

  .card-front h2 {
    font-size: 22px;
  }

  .card-back p,
  .card-back ul {
    font-size: 15px;
    line-height: 1.4;
  }
}

/* Versión escritorio: 2 columnas */
.contact_container {
  display: flex;
  gap: 20px;
}

.contact_container__box {
  flex: 1;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 10px;
}

/* Versión móvil: 1 sola columna */
@media (max-width: 768px) {
  .contact_container {
    flex-direction: column; /* de fila pasa a columna */
  }

  .contact_container__box {
    width: 100%; /* ocupa todo el ancho */
  }
}

/* Corrige submenús en móvil */
@media (max-width: 768px) {
  .main-nav ul ul {
    position: relative; /* ya no flotan */
    top: auto;
    left: auto;
    min-width: 70%; /* que ocupen todo el ancho */
    border: none;    /* opcional: simplificar estilo en móvil */
    background: rgba(0,0,0,0.6);
  }

  .main-nav ul ul li a {
    font-size: 14px; /* sub-opciones más pequeñas */
    padding: 10px 15px;
  }
}

/* Ajuste extra para slider en móviles */
@media (max-width: 768px) {
  .slider {
    height: auto;       /* que se ajuste automáticamente */
    min-height: 300px;  /* nunca demasiado bajo */
  }
  .slide img {
    height: auto;
    max-height: 60vh;   /* no pase de 60% de la pantalla */
  }
}
