/* =========================
   RESET & BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-main: 'Poppins', sans-serif;

  --blue-dark: #0c2238;
  --blue-dark-2: #071a2d;
  --blue-main: #2f80ed;
  --blue-mid: #5faee3;
  --blue-light: #c6dcf0;
  --blue-very-light: #dbe9f6;

  --text-dark: #1c2e45;
}

body {
  font-family: var(--font-main);
  color: #333;
  background-color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}
/* =========================
   BOTÓN PRIMARY (ELEGANTE)
========================= */

.btn-primary {
  position: relative;
  display: inline-block;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-main);
  padding: 6px 2px;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* línea inferior animada */
.btn-primary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--blue-main),
    var(--blue-mid)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

/* hover */
.btn-primary:hover {
  color: var(--blue-dark);
}

.btn-primary:hover::after {
  transform: scaleX(1);
}

/* opcional: foco accesible */
.btn-primary:focus {
  outline: none;
}

.btn-primary:focus::after {
  transform: scaleX(1);
}

/* =========================
   HERO CLEAN - SIN FORMAS
========================= */

.hero-clean {
  position: relative;
  height: 480px;
  width: 100%;
  background: linear-gradient(
    180deg,
    #0b1f33 0%,
    #081829 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OVERLAY SUAVE PARA PROFUNDIDAD */
.hero-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(47, 128, 237, 0.25),
    transparent 70%
  );
  z-index: 1;
}

/* CONTENIDO */
.hero-clean .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  animation: fadeUp 1s ease forwards;
}

.hero-clean img {
  width: 140px;
  margin-bottom: 20px;
}

.hero-clean h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.hero-clean .hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.85;
}

/* ANIMACIÓN */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-clean {
    height: 380px;
  }

  .hero-clean img {
    width: 110px;
  }

  .hero-clean h1 {
    font-size: 26px;
  }

  .hero-clean .hero-subtitle {
    font-size: 14px;
  }
}


/* =========================
   CTA MODERNO - FRANQUICIAS
========================= */

.cta-modern {
  position: relative;
  padding: 60px 20px;
  background: linear-gradient(
    90deg,
    var(--blue-very-light),
    var(--blue-light)
  );
  overflow: hidden;
}

.cta-modern-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-mid), #8bbce3);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
}

.cta-modern-content {
  position: relative;
  max-width: 1100px;
  margin: auto;
  text-align: center;
  z-index: 2;
}

.cta-modern h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
}

/* =========================
   CTA INVERTIR
========================= */

.cta-invest {
  position: relative;
  padding: 70px 20px;
  background-color: var(--blue-light);
  text-align: center;
}

.cta-invest h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.cta-invest p {
  max-width: 800px;
  margin: 0 auto 35px;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================
   NUESTRAS ACADEMIAS
========================= */

.academias-wrapper {
  display: flex;
  justify-content: center;
  padding: 90px 0;
}

.academias-container {
  width: 70%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.gradient-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 25px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.academias-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.academias-image img {
  max-width: 70%;
  transform: rotate(-5deg);
}

/* =========================
   ACORDEÓN FUNCIONAL
========================= */
.sedes-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;

  /* Gradiente celeste/azul */
  background: linear-gradient(
    90deg,
    #24579b 0%,
    #558fb6 50%,
    #8ec9f0 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  position: relative;
}
.sedes-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;

  background: linear-gradient(
    90deg,
    #1b5299,
    #5faee3
  );
}
@media (max-width: 900px) {
  .sedes-title {
    font-size: 28px;
    letter-spacing: 1.5px;
  }
}


.accordion {
  max-width: 850px;
  margin: auto;
}

.accordion-item {
  border-bottom: 1px solid #e3e7ee;
}

.accordion-header {
  width: 100%;
  padding: 18px 10px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #1c2e45;
}

.accordion-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

/* CONTENIDO */
.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  padding: 0 10px;
}

.accordion-content p {
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.6;
}

/* ESTADO ACTIVO */
.accordion-item.active .accordion-content {
  max-height: 1000px; /* grande a propósito */
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}
/* =========================
   NUEVAS TECNOLOGÍAS
========================= */

.tech-section {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f4f8fc 100%
  );
}

/* -------- TÍTULO -------- */

.tech-title-wrapper {
  max-width: 900px;
  margin: 0 auto 60px;
}

.tech-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 60px;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}


/* -------- TARJETA -------- */

.tech-card-wrapper {
  display: flex;
  justify-content: center;
}

.tech-card {
  position: relative;
  max-width: 720px;
  margin: auto;
  padding: 55px 50px;
  background: #ffffff;
  border-radius: 22px;

  /* sombra más notoria pero elegante */
  box-shadow:
    0 20px 40px rgba(12, 34, 56, 0.12),
    0 4px 12px rgba(12, 34, 56, 0.08);

  animation: slideUp 0.9s ease forwards;
}


.tech-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* DETALLE DECORATIVO SUTIL */
.tech-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(47,128,237,0.25),
    transparent 70%
  );
  top: -40px;
  right: -40px;
}

/* TEXTO TARJETA */
.tech-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.tech-card p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* BOTÓN */
.tech-card .btn-primary {
  display: inline-block;
}

/* -------- RESPONSIVE -------- */

@media (max-width: 900px) {
  .tech-title {
    font-size: 28px;
  }

  .tech-card {
    padding: 35px 25px;
  }

  .tech-card h3 {
    font-size: 20px;
  }
}

/* ===============================
   HOME - REPRESENTANTES DE VENTAS
================================ */

.home-representantes {
  position: relative;
  overflow: hidden;
  padding: 100px 20px;
  background: #dbe7f4;
}

.home-rep-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      #8fbfe6 0%,
      #8fbfe6 45%,
      #dbe7f4 45%,
      #dbe7f4 100%);
  z-index: 1;
}

.home-rep-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #2f2f2f;
}

.home-rep-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 30px;
}

.home-rep-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.home-rep-sub {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.home-rep-text {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1rem;
  line-height: 1.6;
}

.home-representantes .btn-primary {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .home-representantes {
    padding: 70px 16px;
  }

  .home-rep-bg {
    background: #8fbfe6;
  }
}

/* =========================
   OPINIONES
========================= */

.opiniones {
  padding: 90px 20px;
  background: #f4f6f9;
  text-align: center;
}

/* TÍTULO */
.opiniones-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 50px;
  background: linear-gradient(90deg, #2f80ed, #5faee3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CONTENEDOR CARRUSEL */
.opiniones-carousel {
  max-width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* TRACK */
.opiniones-track {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* TARJETA OPINIÓN */
.opinion-card {
  display: none;
  padding: 45px 50px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    #ffffff,
    #eef4fb
  );
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  animation: fadeSlide 0.45s ease;
}

.opinion-card.active {
  display: block;
}

/* TEXTO */
.opinion-text {
  font-size: 17px;
  line-height: 1.7;
  color: #1c2e45;
  margin-bottom: 25px;
}

/* AUTOR */
.opinion-author {
  font-size: 14px;
  font-weight: 600;
  color: #2f80ed;
}

/* BOTONES */
.op-btn {
  background: var(--blue-main);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.op-btn:hover {
  background: #256ad6;
}

/* ANIMACIÓN */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .opinion-card {
    padding: 35px 25px;
  }

  .opinion-text {
    font-size: 15px;
  }
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .hero-modern {
    height: 380px;
  }

  .bg-diagonal {
    width: 70%;
  }

  .cta-modern h2 {
    font-size: 28px;
  }

  .academias-container {
    width: 90%;
    grid-template-columns: 1fr;
  }

  .academias-image {
    text-align: center;
  }
}
/* =========================
   ANIMACIONES HOME
========================= */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* DESDE IZQUIERDA */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* DESDE DERECHA */
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ESCALA SUAVE (TARJETAS / OPINIONES) */
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}
/* =========================
   ELIMINAR HOVER AZUL / RESALTADO TÁCTIL
========================= */

/* Elimina el outline azul en todos los elementos interactivos */
a, button, .btn-primary, [tabindex], input, select, textarea {
  outline: none !important;
}

/* Elimina el resaltado gris/azul al tocar en dispositivos móviles */
* {
  -webkit-tap-highlight-color: transparent;
}

/* (Opcional) Mantener un indicador de foco solo para navegación por teclado - mejora accesibilidad */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible {
  outline: 2px solid var(--blue-main) !important;
  outline-offset: 2px;
}
/* =========================
   ELIMINAR HOVER AZUL / RESALTADO TÁCTIL
========================= */

/* Elimina el outline azul en todos los elementos interactivos */
a, button, .btn-primary, [tabindex], input, select, textarea {
  outline: none !important;
}

/* Elimina el resaltado gris/azul al tocar en dispositivos móviles */
* {
  -webkit-tap-highlight-color: transparent;
}

/* (Opcional) Mantener un indicador de foco solo para navegación por teclado - mejora accesibilidad */
a:focus-visible, button:focus-visible, .btn-primary:focus-visible {
  outline: 2px solid var(--blue-main, #2f80ed) !important;
  outline-offset: 2px;
}