/* --------------------------------------------------
   RESET & BASE
-------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f9fafb;
  color: #0f172a;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* --------------------------------------------------
   THEME VARIABLES
-------------------------------------------------- */

:root {
  --bg-main: #f9fafb;
  --bg-section: #ffffff;
  --bg-soft: #f3f4f6;

  --primary: #14b8a6;       /* turquesa botón */
  --primary-hover: #0d9488;
  --primary-soft: #ecfdf5;

  --accent: #22c55e;        /* verde suave para detalles */
  --accent-soft: #ecfdf3;

  --border-subtle: #e5e7eb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);

  --text-main: #0f172a;
  --text-muted: #6b7280;

  --radius-lg: 16px;
  --radius-xl: 20px;

  --container-width: 1120px;
}

/* --------------------------------------------------
   LAYOUT
-------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  padding: 0 1.5rem;
  margin: 0 auto;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1.5rem;
}

.logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.nav a {
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.9;
  transition: width 0.2s ease;
}

.nav a:hover {
  color: #ffffff;
}

.nav a:hover::after {
  width: 100%;
}

/* Buttons */

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ecfeff;
  box-shadow: 0 16px 40px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(20, 184, 166, 0.45);
}

.btn-outline {
  border-color: #d1d5db;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
  border-color: #0f172a;
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */

.hero {
  position: relative;
  min-height: 85vh;
  padding: 4.5rem 0 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #02061727;
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("img/estudiantes.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.45),
      rgba(15, 23, 42, 0.85)
    );
  z-index: -1;
}

.hero-content {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: #f9fafb;
  margin-bottom: 1rem;
  max-width: 720px;
}

.hero-content p {
  font-size: 1.32rem;
  font-weight: 300;
  color: #e5e7eb;
  margin-bottom: 2rem;
}

.hero-content .btn-primary {
  font-size: 1.02rem;
  padding-inline: 1.7rem;
}

/* Scroll indicador */

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: #e5e7eb;
  font-size: 0.8rem;
}

.scroll-indicator i {
  font-size: 1.3rem;
  animation: scrollBounce 1.4s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* --------------------------------------------------
   STATS
-------------------------------------------------- */
/* Sección */
.que-es-nexo {
    max-width: var(--container-width);
    margin: 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
  }
  
  .que-es-nexo .subtitle {
    max-width: 850px;
    margin: 0 auto 2.5rem;
    color: var(--text-muted);
    line-height: 1.6;
  }
  
  /* ---- GRID DE 4 COLUMNAS ---- */
  .nexo-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  /* Responsive */
  @media (max-width: 1024px) {
    .nexo-stats {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 640px) {
    .nexo-stats {
      grid-template-columns: 1fr;
    }
  }
  
  /* ---- TARJETA (idéntica a las stats antiguas) ---- */
  .nexo-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.8rem 1.6rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    text-align: center;
  }
  
  /* Icono circular */
  .nexo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
  }
  
  /* Título */
  .nexo-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
  }
  
  /* Texto */
  .nexo-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
  }
  


/* --------------------------------------------------
   TESTIMONIOS
-------------------------------------------------- */
.stats {
    max-width: var(--container-width);
    margin: 3rem auto 3.5rem;
    padding: 0 1.5rem;
    display: grid;
    gap: 3rem;
    align-items: center;
  }

/* --------------------------------------------------
   APP SECTION
-------------------------------------------------- */

.app-section {
  max-width: var(--container-width);
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.app-image {
  justify-self: center;
  position: relative;
}

/* círculos decorativos (simples) */
.app-image::before,
.app-image::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.2);
}

.app-image::before {
  width: 110px;
  height: 110px;
  right: -7px;
  top: 60px;
}

.app-image::after {
  width: 120px;
  height: 120px;
  left: -25px;
  bottom: 85px;
  background: rgba(16, 185, 129, 0.18);
}

.app-content h2 {
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.app-content p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 1.6rem;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.app-features i {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  font-size: 1.2rem;
}

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.app-buttons img {
  height: 44px;
}

/* --------------------------------------------------
   PROGRAMAS FORMATIVOS (ACCORDION)
-------------------------------------------------- */

.programas {
  max-width: var(--container-width);
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}

.programas h2 {
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.programas .subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.accordion-item {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
}

.accordion-header {
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
}

.accordion-header .icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  color: #059669;
  font-size: 1.2rem;
}

.accordion-header h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
  color: var(--text-main);
}

.accordion-header span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.accordion-header .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  margin-left: 0.3rem;
}

.arrow {
  font-size: 1.4rem;
  color: #9ca3af;
  transition: transform 0.18s ease-out;
}

.accordion-content {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.accordion-item.open .accordion-content {
  display: block;
}

.accordion-item.open .arrow {
  transform: rotate(180deg);
}

.tag.fp-basica {
    background: #EFFFF7;
    color: #29CF3C;
}
.tag.grado-medio {
    background: #EFF6FF;
    color: #2966EB;
}
.tag.grado-superior {
    background: #FAEFFF;
    color: #D129EB;
}

.accordion-content li {
    margin-top: 25px;
    font-weight: bold;
}

.accordion-content ul li:first-child {
    margin-top: 0;
}

.accordion-content p
{
    font-weight: normal;
    text-decoration: underline;
    margin: 0;
    margin-top:5px;
}

.accordion-content .salidas-lista li {
    margin-top: 0; /* Sin margen para las salidas profesionales */
    font-weight: normal;
}

/* Caja inferior */

.info-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid #d1fae5;
  background: #ecfdf5;
}

.info-box .icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #d1fae5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  font-size: 1.25rem;
}

.info-box h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--text-main);
}

.info-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.7rem;
}

.info-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-outline.small {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

/* --------------------------------------------------
   POR QUÉ CONTRATAR
-------------------------------------------------- */
/* Sección */
.beneficios {
    padding: 4rem 1rem;
    border-radius: 16px;
}

.beneficios h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* Grid */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.beneficio-card {
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.beneficio-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #E6F7F2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.beneficio-card .icon i {
    font-size: 24px;
    color: #0C9C75;
}

.beneficio-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.beneficio-card p {
    font-size: .95rem;
    color: #555;
}

/* CTA final */
.cta-colaborar {
    background: linear-gradient(135deg, #0FB98B, #1DBFA0);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 20px;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.cta-colaborar h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-colaborar p {
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 2rem;
}

.btn-colaborar {
    background: #ffffff;
    color: #0E8570;
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: 30px;
    font-size: 1rem;
    display: inline-block;
    transition: transform .2s;
}

.btn-colaborar:hover {
    transform: scale(1.05);
}

.por-que-contratar {
    padding: 4rem 1rem;
}

.por-que-contratar h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.por-que-contratar .subtitle {
    text-align: center;
    color: #505050;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1rem;
}

.contratar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .contratar-grid {
        grid-template-columns: 1fr;
    }
}

.contratar-card {
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

.contratar-card .icon {
    width: 48px;
    height: 48px;
    background: #E6F7F2;
    color: #0AAE84;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.contratar-card .icon i {
    font-size: 24px;
}

.contratar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.contratar-card p {
    font-size: .95rem;
    color: #555;
    line-height: 1.5;
}



/* --------------------------------------------------
   INSTITUTOS SLIDER
-------------------------------------------------- */

.institutos {
  max-width: var(--container-width);
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}

.institutos h2 {
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.institutos .subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.instituto-slider {
  position: relative;
  padding: 1.4rem 3.2rem;
  border-radius: 20px;
  overflow: hidden;
}

.slide-track {
    display: flex;
    transition: transform 0.35s ease-out;
  }
  
  .slide-card {
    min-width: 100%;
    max-width: 100%;
    padding: 2rem 2rem;
    margin: 0 auto;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;  
    text-align: center;
  }
  

.slide-icon {
  max-height: 120px;
  /*border-radius: 999px;
  background: #ecfdf5;*/
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.8rem;
}

.slide-icon img {
  width: auto;
  height: 75px;
  object-fit: contain;
}

.slide-card h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
  color: var(--text-main);
}

.slide-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.slide-card p i {
  color: #14b8a6;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

.slide-btn:hover {
  background: #f3f4f6;
}

.slide-btn.prev {
  left: 1rem;
}

.slide-btn.next {
  right: 1rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d1d5db;
  transition: all 0.2s ease;
}

.dot.active {
  width: 18px;
  background: #14b8a6;
}

.salidas-lista {
    margin-top: .5rem;
    padding-left: 1.2rem;
    color: #444;
    line-height: 1.4;
}

.salidas-lista li {
    margin-bottom: .3rem;
}


/* --------------------------------------------------
   TESTIMONIOS
-------------------------------------------------- */

.testimonios {
  max-width: var(--container-width);
  margin: 0 auto 4rem;
  padding: 0 1.5rem 4rem;
}

.testimonios h2 {
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.testimonios .subtitle {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.testimonio-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-bottom: 2rem;
}

.test-card {
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.test-card .quote {
  font-size: 0.98rem;
  margin: 0 0 1rem;
  color: #0f172a;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.card-footer i {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #ecfdf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
}

.card-footer strong {
  display: block;
  color: #0f172a;
}

.card-footer span {
  color: var(--text-muted);
}

/* Stats grandes */

.stats-large {
  display: grid;
  justify-content: center; /* <-- fuerza centrado horizontal */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stats-large > div {
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  background: #14b8a6;
  color: #ecfdf5;
  text-align: center;
}

.stats-large h3 {
  font-size: 1.8rem;
  margin: 0 0 0.25rem;
}

.stats-large p {
  font-size: 0.9rem;
  margin: 0;
}


/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    width: 34px;
    height: 28px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 3px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


/* Mobile menu hidden by default */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(10, 12, 20, 0.95);
    backdrop-filter: blur(12px);
    padding: 2rem;
    padding-top: 5rem;
    transition: right 0.35s ease;
    z-index: 2000;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    margin-bottom: 1.5rem;
}

.mobile-menu ul li a {
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
}

.mobile-contact {
    display: inline-block;
    margin-top: 2rem;
    padding: 10px 20px;
    background: white;
    color: #0a2a34;
    font-weight: 600;
    border-radius: 50px;
}

/* When menu open */
.mobile-menu.open {
    right: 0;
} 

.close-menu {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s ease;
  }
  
  .close-menu:hover {
    opacity: 0.7;
  }

  .footer {
    background: #0d111c;
    color: #d5dde5;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: auto;
  }
  
  .footer-logo {
    width: 100px;
    margin-bottom: 1.2rem;
  }
  
  .footer-desc {
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .footer-socials a {
    background: #1b2232;
    padding: 10px;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.1rem;
    display: inline-flex;
    color: #dfe6ee;
    transition: 0.2s ease;
  }
  
  .footer-socials a:hover {
    background: #0bbfaa;
  }
  
  .footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
  }
  
  .footer-col ul {
    padding: 0;
    list-style: none;
  }
  
  .footer-col ul li {
    margin-bottom: 0.6rem;
  }
  
  .footer-col ul li a {
    color: #cbd3dd;
    text-decoration: none;
    transition: 0.2s ease;
  }
  
  .footer-col ul li a:hover {
    color: #0bbfaa;
  }
  
  .footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0 1.5rem;
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    font-size: 0.9rem;
    color: #aeb7c3;
  }
  
  .footer-legal a {
    margin-left: 1.5rem;
    color: #b7c1cd;
    text-decoration: none;
  }
  
  .footer-legal a:hover {
    color: #0bbfaa;
  }
  
  .designed-badge {
    background: white;
    padding: 6px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 0.85rem;
  }
  
  .designed-badge img {
    width: 18px;
  }

  .footer_images {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr)); 
    gap: 2rem;
    align-items: center;
    justify-items: center;
    padding: 2rem 0;
  }
  .footer_images img
  {
    height: auto;
    max-width: 200px;
  }

  @media (max-width: 1024px) {
    .footer_images {
      grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
  }
  
  @media (max-width: 600px) {
    .footer_images {
      grid-template-columns: repeat(2, minmax(120px, 1fr));
      gap: 1.5rem;
    }
  }
  
  @media (max-width: 420px) {
    .footer_images {
      grid-template-columns: 1fr;
    }
  
    .footer_images img {
      max-width: 200px;
    }
  }
  
  
  /* MOBILE */
  @media (max-width: 768px) {
    .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
      gap:1rem;
    }
  
    .footer-socials {
      justify-content: center;
    }
  
    .footer-bottom {
      flex-direction: column;
      gap: 1rem;
    }
  
    .footer-legal a {
      margin: 0 0.5rem;
    }

    .footer-logo {
      margin: 35px auto;
    }
  }
  

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 1024px) {

  .hero {
    min-height: 75vh;
  }

  .hero-content h1 {
    font-size: 3.1rem;
  }

  .app-section {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .testimonio-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -----------------------------------------
   📱 RESPONSIVE — MOBILE
----------------------------------------- */
@media (max-width: 768px) {

    nav.desktop-menu {
    display: none !important;
    }

    .hamburger {
    display: flex;
    }

    .btn-contacto
    { display: none; }
  
    /* Títulos y subtítulos */
    h1, h2, h4, h5, h6,
    .section-title,
    .section-subtitle {
        text-align: center;
    }

    /* Párrafos */
    p {
        text-align: center;
    }

    .accordion-header p{
        text-align: auto;
    }

    .info-box p {
        text-align: left;
    }

    /* Contenedores clave */
    .app-content,
    .stats-section,
    .programs-header,
    .institutes-header,
    .testimonials-header,
    .hero-content {
        text-align: center;
        align-items: center;
    }

    /* Listas dentro de la sección de app */
    .app-features {
        align-items: center;
    }

    .app-image img{
        margin: 0 auto;
    }

    /* Botones centrados */
    .app-buttons{
        justify-content: center;
    }

    .btn,
    .cta-button {
        margin-left: auto;
        margin-right: auto;
    }

    /* Asegurar que iconos + texto se centran bien */
    .feature-item {
        justify-content: center;
    }

    /* HEADER */
    header .container {
      padding: 1rem 1.25rem;
    }
  
    .nav {
      display: none; /* No hay menú en móvil en diseño original */
    }
  
    .btn-outline {
      padding: 0.4rem 1rem;
      font-size: 14px;
    }
  
    /* HERO */
    .hero {
      padding: 4rem 1.5rem;
      min-height: auto;
    }
  
    .hero-content h1 {
      font-size: 36px;
      line-height: 1.2;
    }
  
    .hero-content p {
      font-size: 16px;
    }
  
    .hero-content .btn-primary {
      width: 100%;
      text-align: center;
      font-size: 16px;
      padding: 0.85rem 1.2rem;
    }
  
    .scroll-indicator {
      margin-top: 1.5rem;
    }
  
    .app-features li {
      margin-bottom: 0.6rem;
      font-size: 15px;
    }
  
    .app-buttons img {
      height: 40px;
    }
  
    .app-image {
      order: -1;
      width: 100%;
      text-align: center;
    }
  
    .app-image img {
      max-width: 260px;
    }
  
    /* ACCORDION */
    .accordion-item {
      padding: 1rem;
    }
  
    .accordion-header h3 {
      font-size: 17px;
    }
  
    .accordion-content {
      font-size: 15px;
    }
  
    /* INSTITUTOS — 1 SLIDE */
    .instituto-slider {
      width: 100%;
      overflow: hidden;
    }
  
    .slide-card {
      max-width: 90%;
      margin: 0 auto;
    }
  
    .slide-btn {
      display: none; /* flechas ocultas en móvil como la referencia */
    }
  
    .dots {
      margin-top: 1rem;
    }
  
    /* TESTIMONIOS */
    .testimonio-cards {
    grid-template-columns: 1fr !important; /* una sola columna */
    gap: 1.25rem;
    }

    .test-card {
    width: 100%;
    max-width: 100%;
    }
  
    /* MÉTRICAS FINALES */
    .stats-large {
      grid-template-columns: repeat(2, minmax(0, 1fr)); /* <- se mantiene grid! */
      gap: 1rem;
    }
  
    .stats-large > div {
      padding: 1.1rem;
    }
  
    .stats-large h3 {
      font-size: 1.5rem;
    }

    .app-image::before {
      width: 95px;
      height: 95px;
      right: 185px;
      top: 9px;
    }

    .app-image::after {
      width: 105px;
      height: 105px;
      left: 162px;
      bottom: 46px;
      background: rgba(16, 185, 129, 0.18);
    }

    .app-section {
      flex-direction: column;
      gap: 0;
      padding: 2rem 1.25rem;
      text-align: left;
    }
    
      .app-image {
        order: -1;
      }

      /* FOOTER */
      .footer-col ul li
      { display: block; }
}
  

@media (max-width: 520px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .stats {
    padding-inline: 1.25rem;
  }

  .programas,
  .institutos,
  .testimonios,
  .app-section {
    padding-inline: 1.25rem;
  }

  .app-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "image";
  }

  .app-image {
    grid-area: image;
  }

  .app-content {
    grid-area: content;
  }

  .app-section {
    grid-template-columns: 1fr;
  }
  
  .stats-large {
    grid-template-columns: 1fr;
  }
}
