@font-face {
  font-family: "MiFuente";
  src: url("../fonts/Aftika-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: "MiFuente", sans-serif;
  background-color: #fff;
}

/* NAVBAR */
.navbar {
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1.8rem;
  position: sticky;
  top: 0;              /* 👈 ESTA ES LA CLAVE */
  z-index: 10000;      /* 👈 para que quede sobre todo */

}

/* MENÚ */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 5rem; /* separación entre opciones */
}

.nav-menu a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  padding-bottom: 6px; /* espacio para la línea */
}

/* LÍNEA ROJA */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #e3000f; /* rojo corporativo */
  transition: width 0.3s ease;
}

/* HOVER */
.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu li {
  position: relative;
}


/* CONTENEDOR DE LOGOS */
.logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LOGOS */
.logos img {
  height: 115px;
  width: auto;
}

/* BOTÓN MENÚ (solo móvil luego) */
.menu-toggle {
  display: none; /* se activa en responsive */
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}


/*////////////////////////////////////////////////////////////////*/

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* 👈 texto más ancho */
  align-items: center;
  gap: 2rem;
  padding: 4rem 1.8rem;
}


/* TEXTO */
.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  word-wrap: break-word;
}


.hero-content p {
  font-size: 1.05rem;
  color: #000;
}

/* IMAGEN */
.hero-image {
  position: relative;
  width: 500px;
  height: 500px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

/* CÍRCULOS DECORATIVOS */
.circle-deco {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.circle-deco.red {
  width: 120px;
  height: 120px;
  background-color: #e3000f;
  bottom: -20px;
  left: 40px;
}

.circle-deco.black {
  width: 55px;
  height: 55px;
  background-color: #000;
  bottom: 60px;
  left: 10px;
}
.hero-image:hover .circle-deco.red {
  background-color: #000;
}

.hero-image:hover .circle-deco.black {
  background-color: #e3000f;
}

/* ===============================
   SECCIÓN IMPACTO
=============================== */

.impact {
  background-color: #000;
  color: #fff;
  padding: 5rem 2rem;
}

.impact-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* TÍTULO */
.impact h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.impact h2 span {
  color: #e3000f; /* rojo corporativo */
}

/* TEXTO */
.impact p {
  max-width: 900px;
  margin: 0 auto 3.5rem;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* TARJETAS */
.impact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.impact-card {
  background: linear-gradient(180deg, #1a1a1a, #0c0c0c);
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 5px;
  background-color: #e3000f;
  border-radius: 0 0 6px 6px;
}

/* NÚMEROS */
.impact-card h3 {
  font-size: 2.8rem;
  color: #e3000f;
  margin-bottom: 0.6rem;
}

/* DESCRIPCIÓN */
.impact-card span {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* HOVER */
.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
/* ===============================
   TESTIMONIOS
=============================== */

.testimonials {
  padding: 6rem 2rem;
  background-color: #fff;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.testimonials h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.testimonials-subtitle {
  font-size: 1.05rem;
  margin-bottom: 4rem;
}
.testimonials-subtitle-red{
    color: #e3000f;
}
/* GRID */
.testimonials-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* CARD */
.testimonial-card {
  background: linear-gradient(180deg, #1a1a1a, #0c0c0c);
  color: #fff;
  border-radius: 20px;
  padding: 3.5rem 2rem 2.5rem;
  position: relative;
}

/* AVATAR */
.avatar {
  width: 110px;
  height: 110px;
  background-color: #fff;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXTO */
.testimonial-card h3 {
  margin-top: 3.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.role {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin: 0.4rem 0 1.2rem;
  line-height: 1.4;
}

.quote {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.9;
}


/* ===============================
   sengunda pagina CONOCENOS
=============================== */

/* ===============================
   MISIÓN / VISIÓN / VALORES
=============================== */

.mv-carousel {
  background-color: #fff;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.mv-track {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  min-height: 260px;
}

/* SLIDE */
.mv-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  text-align: center;
}

.mv-slide.active {
  opacity: 1;
  pointer-events: auto;
}



/* BADGE */
.mv-badge {
  display: inline-block;
  background-color: #e3000f;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  padding: 0.6rem 1.6rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

/* TEXTO */
.mv-slide p {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;  
  text-align: center; 

}

/* DOTS */
.mv-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 3rem;
}

.dot {
  width: 14px;
  height: 14px;
  background-color: #f3b1b6;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #e3000f;
}
.mv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #e3000f;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.mv-arrow.left {
  left: 20px;   /* 👈 izquierda REAL */
}

.mv-arrow.right {
  right: 20px;  /* 👈 derecha REAL */
}

/* ===============================
   NUESTRA HISTORIA
=============================== */

.history {
  background-color: #0f0f0f;
  background-image: url(../imagenes/fondo_t.svg);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.history-container {
  position: relative;
  z-index: 1; /* texto encima del canvas */
}


.history-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
   text-align: center; /* 👈 centra todo el texto */
}

/* TÍTULO */
.history h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

/* TEXTO */
.history-text {
  max-width: 720px;
  color: #fff;
  margin: 0 auto;
}

.history-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  opacity: 0.9;
}

.history-text strong {
  font-weight: 700;
  opacity: 1;
}

/* ===============================
   tercera pagina asociaciones
=============================== */

/* ===============================
   SECCIÓN IMÁGENES + PARTÍCULAS
=============================== */

.particles-gallery {
  position: relative;
  background-color: #ffffff;
  padding: 6rem 2rem;
  overflow: hidden;
}

/* Canvas */
.particles-gallery .particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Contenedor de imágenes */
.gallery-container {
  position: relative;
  z-index: 1;
  display: grid;
   grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
   max-width: 900px;
  margin: 0 auto;
  justify-items: center;
}

/* Imágenes */
.gallery-container img {
  width: 260px;
  max-width: 90%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover sutil */
.gallery-container img:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 60px rgba(227, 0, 15, 0.4);
}




.certificaciones {
  padding: 3rem 1rem;
  text-align: center; /* 👈 centra el título */
}

.certificaciones h2 {
  color: #e3000f;      /* rojo corporativo */
  font-size: 3rem;
  font-weight: 700;
  margin: 0 auto;
}


/* ===============================
   cuarta pagina servicio
=============================== */

/* ===============================
   SECCIÓN IMÁGENES + PARTÍCULAS
=============================== */

.contacto {
  background: radial-gradient(circle at top, #2a2a2a, #0f0f0f);
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
}

/* TÍTULO */
.contacto-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.contacto-header span {
  color: #e3000f; /* rojo TECINTEC */
}

.contacto-header small {
  font-size: 2rem;
  font-weight: 300;
  color: #ffffff;
}

/* LÍNEA DIVISORIA */
.contacto-linea {
  width: 100%;
  height: 2px;
  background-color: #00c7d9; /* línea celeste */
  margin: 4rem 0;
}

/* CANALES */
.contacto-canales {
  display: flex;
  justify-content: center;
  gap: 8rem;
  flex-wrap: wrap;
}

.canal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 260px;
}

.icono {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icono img {
  width: 45px;
  filter: none;               /* color original del SVG */
  transition: filter 0.3s ease;
}

.canal:hover .icono img {
  filter: brightness(0) invert(1); /* blanco SOLO en hover */
}

.canal p {
  font-size: 1.4rem;
  line-height: 1.5;
}

.canal strong {
  font-weight: 600;
}

/* CONTACTO DROPDOWN */
.nav-contacto {
  position: relative;
}

/* Botón */
.contacto-btn {
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Ícono hamburguesa */
.hamburger {
  font-size: 1rem;
}

/* Dropdown */
.contacto-dropdown {
  position: absolute;
  top: 100%;            /* debajo del botón */
  right: 0;             /* 👈 se abre a la derecha */
  background-color: #2a2a2a;
  color: #fff;
  width: 320px;         /* 👈 ancho controlado */
  padding: 1.5rem;
  display: none;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 9999;
}


/* Texto */
.contacto-dropdown p {
  font-size: 0.85rem;
  line-height: 1.3;
  color: #fff;
}

.contacto-dropdown strong {
  font-weight: 700;
}
/* ===============================
   CONTACTO DROPDOWN NAVBAR
=============================== */

.contacto-btn {
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hamburger {
  font-size: 1.3rem;
}

/* Dropdown */
.contacto-dropdown {
  position: absolute;
  top: 100%;
  right: 1.8rem;
  background-color: #2f2f2f;
  padding: 1.2rem 1.4rem;
  border-radius: 8px;
  display: none; /* 👈 CLAVE */
  flex-direction: column;
  gap: 0.9rem;
  z-index: 9999;
  min-width: 260px;
}

/* Texto */
.contacto-dropdown p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #fff;
}

.contacto-dropdown strong {
  font-weight: 600;
}

.canal a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.canal a:hover {
  color: #e3000f;
  text-decoration: underline;
}
.correo-copia {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.copy-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer {
  background-color: #000;
  color: #fff;
  padding: 60px 40px 0;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  width: 45%;
}

.footer-logo {
  width: 120px;
  margin-bottom: 20px;
}

.footer-column p {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.footer-column span {
  color: #e10613; /* rojo del diseño */
  font-weight: bold;
}

.footer-divider {
  width: 2px;
  background-color: #fff;
}

.footer-bar {
  margin-top: 40px;
  height: 20px;
  background-color: #e10613;
}

.footer-column a {
  color: #fff;
  text-decoration: none;
}

.footer-column a:hover {
  color:#fff;
  text-decoration: underline;
}


/* ===============================
  Responsive celular 
=============================== */

/* ===============================
   NAVBAR RESPONSIVE
=============================== */

/* Botón hamburguesa oculto en desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 960px) {

  .navbar {
    padding: 0.8rem 1.4rem;
  }

  /* Mostrar botón */
  .mobile-menu-btn {
    display: block;
  }

  /* Menú oculto por defecto */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #000;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    display: none;
  }

  /* Menú activo */
  .nav-menu.active {
    display: flex;
  }

  /* Centrar links */
  .nav-menu li {
    text-align: center;
  }

  /* Logos más pequeños */
  .logos img {
    height: 70px;
  }
}
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    margin-top: 2rem;
    width: 100%;
    height: auto;
    justify-self: center;
  }

  .hero-image img {
    width: 280px;
    height: 280px;
  }
}
/* ===============================
   IMPACT RESPONSIVE
=============================== */

/* Tablet */
@media (max-width: 960px) {
  .impact-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Celular */
@media (max-width: 520px) {
  .impact-cards {
    grid-template-columns: 1fr;
  }

  .impact-card h3 {
    font-size: 2.4rem; /* un poco más chico para mobile */
  }
}
/* ===============================
   TESTIMONIOS RESPONSIVE
=============================== */

/* Tablet + Mobile */
@media (max-width: 960px) {
  .testimonials-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .mv-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    width: 320px;
    height: 320px;
    margin: 2rem auto 0;
  }
}

/* ===============================
   traduccion 
=============================== */

.lang-switch {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;

  background: #e26007;
  color: #fff;
  border: none;
  border-radius: 50px;

  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;

  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lang-switch:hover {
  transform: translateY(-2px);
  background: #d50000; /* rojo TECINTEC */
}

/* Mobile */
@media (max-width: 768px) {
  .lang-switch {
    bottom: 16px;
    right: 16px;
    padding: 10px 14px;
  }
}
.mv-carousel {
  touch-action: pan-y;
  user-select: none;
}
@media (max-width: 480px) {

  .footer {
    padding: 20px 15px 0;
  }

  .footer-logo {
    width: 75px;
  }

  .footer-column p {
    font-size: 11px;
  }

  .footer-bar {
    height: 8px;
  }
}
