/* ============================================================
   GARET — @font-face
   Descarga los archivos desde: https://www.fontshare.com/fonts/garet
   Colócalos en la carpeta /fonts del proyecto
============================================================ */
@font-face {
  font-family: 'Garet';
  src: url('../fonts/Garet-Heavy.woff2') format('woff2'),
       url('../fonts/Garet-Heavy.woff')  format('woff');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Garet';
  src: url('../fonts/Garet-Book.woff2') format('woff2'),
       url('../fonts/Garet-Book.woff')  format('woff');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   TOKENS DE DISEÑO
============================================================ */
:root {
  /* Colores */
  --bg:        #e9e9e9;
  --primary:   #144540;
  --primary-dk:#0c2e2a;
  --accent:    #7dc200;
  --accent-dk: #6aaa00;
  --teal:      #32aea2;
  --teal-dk:   #289188;
  --pastel-1:  #e8f5f4;
  --pastel-2:  #c2e4e1;
  --pastel-3:  #8ecbc6;
  --white:     #ffffff;
  --black:     #000000;
  --gray-1:    #f5f5f5;
  --gray-2:    #e0e0e0;
  --gray-3:    #9e9e9e;
  --text-body: #2a2a2a;

  /* Tipografías */
  --ff-heading: 'Montserrat', sans-serif;
  --ff-sub:     'Garet', 'Nunito', 'Raleway', sans-serif;
  --ff-body:    'Poppins', sans-serif;

  /* Espaciado */
  --section-py: clamp(4rem, 8vw, 7rem);
  --gap:        1.5rem;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);

  /* Transición */
  --ease: all .3s cubic-bezier(.4,0,.2,1);

  /* Navbar */
  --nav-h: 72px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

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

/* ============================================================
   TIPOGRAFÍA BASE
============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

p { max-width: 68ch; }

/* ============================================================
   LAYOUT
============================================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

@media (min-width: 1200px) {
  .container { padding: 0 1.5rem; }
}

/* ============================================================
   SECCIONES BASE
============================================================ */
.section {
  padding: var(--section-py) 0;
}

/* Backgrounds por sección (según esquema de color) */
.about         { background: var(--bg); }
.languages     { background: var(--white); }
.counter-band  { background: var(--primary); }
.modal-section { background: var(--bg); }
.why-us        { background: var(--white); }
.testimonials  { background: var(--bg); }
.pricing       { background: var(--white); }

/* ============================================================
   SECTION HEADER
============================================================ */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header--light h2,
.section-header--light .section-desc {
  color: var(--white);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem 1rem;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(125, 194, 0, .15);
  color: var(--accent-dk);
  margin-bottom: 1rem;
}

.section-tag--light {
  background: rgba(255, 255, 255, .15);
  color: var(--white);
}

.section-title {
  margin-bottom: 1rem;
  color: var(--black);
}

.section-title span {
  color: var(--accent);
}

.section-header--light .section-title {
  color: var(--white);
}

.section-header--light .section-title span {
  color: var(--pastel-2);
}

.section-desc {
  font-size: clamp(.95rem, 2vw, 1.05rem);
  color: var(--gray-3);
  margin: 0 auto;
  max-width: 58ch;
  text-align: center;
}

.section-header--light .section-desc {
  color: var(--pastel-2);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  background-color: var(--primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  background: var(--teal);
}

.bg-circle-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
}

.bg-circle-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: 5%;
}

.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1.5px, transparent 0);
  background-size: 30px 30px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--pastel-2);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 1.4rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

/* Hero Title */
.hero-title {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
}

.title-accent {
  color: var(--accent);
  display: block;
}

/* Hero Subtitle */
.hero-subtitle {
  color: rgba(255,255,255,.75);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 50ch;
}

.hero-subtitle strong {
  color: var(--white);
  font-weight: 600;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.stat {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 0 .75rem;
}

.stat-num {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: .2rem;
}

.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  font-weight: 400;
  line-height: 1.3;
}

.stat-sep {
  width: 1px;
  background: rgba(255,255,255,.15);
  margin: .25rem 0;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem;
}

.hero-img-ring {
  position: relative;
  width: clamp(260px, 40vw, 420px);
  height: clamp(260px, 40vw, 420px);
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255,255,255,.15);
  box-shadow: 0 0 0 15px rgba(125,194,0,.08), var(--shadow-lg);
  flex-shrink: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Language bubbles */
.lang-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  background: var(--white);
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.bubble-flag { font-size: 1.2rem; }
.bubble-name { font-family: var(--ff-heading); font-size: .8rem; }

.lang-bubble-1 {
  top: 8%;
  left: 0;
  animation: float 3.5s ease-in-out infinite;
}

.lang-bubble-2 {
  bottom: 12%;
  right: 0;
  animation: float 3.5s ease-in-out infinite 1.2s;
}

.lang-bubble-3 {
  bottom: 30%;
  left: -1rem;
  animation: float 3.5s ease-in-out infinite 2.4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ============================================================
   LANGUAGES GRID
============================================================ */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .lang-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   WHY-US GRID
============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 600px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   TESTIMONIALS GRID
============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   PRICING GRID
============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-note {
  text-align: center;
  font-size: .85rem;
  color: var(--gray-3);
  font-style: italic;
  max-width: none;
}

/* ============================================================
   ABOUT — QUIÉNES SOMOS
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
  }
}

.about-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: .5rem 0 1.25rem;
  color: var(--primary);
}

.about-text {
  font-size: .97rem;
  color: var(--gray-3);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 58ch;
}

.about-features {
  display: flex;
  flex-wrap: nowrap;
  gap: .65rem;
  margin: 1.75rem 0 2.25rem;
}

/* Image side */
.about-img-wrap {
  position: relative;
  /* reserva espacio para el bloque deco lateral */
  padding: 0 1.75rem 1.75rem 0;
}

.about-img-deco {
  position: absolute;
  top: 1.5rem;
  right: -0.5rem;
  bottom: -0.5rem;
  left: 1.5rem;
  background: var(--pastel-2);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.about-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,69,64,.3) 100%);
  z-index: 2;
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: scale(1.15);
}

.about-img-badge {
  position: absolute;
  bottom: 3.5rem;
  left: -1rem;
  z-index: 3;
  background: var(--white);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .75rem;
  border-left: 3px solid var(--accent);
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.badge-stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  line-height: 1;
}

.badge-stat strong {
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--primary);
}

.badge-stat span {
  font-size: .74rem;
  color: var(--gray-3);
  white-space: nowrap;
}

/* Mobile: quitar badge negativo en pantallas muy pequeñas */
@media (max-width: 479px) {
  .about-img-badge { left: .5rem; bottom: 2.5rem; }
  .about-img-wrap  { padding: 0 1rem 1rem 0; }
  .about-img-deco  { left: .75rem; }
}

/* ============================================================
   COUNTER BAND
============================================================ */
.counter-band {
  padding: clamp(4rem, 8vw, 6rem) 0;
  overflow: hidden;
}

.counter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 800px) {
  .counter-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    text-align: left;
  }
}

.counter-number-wrap {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  flex-shrink: 0;
}

.counter-plus {
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  color: var(--accent);
  margin-top: .18em;
  margin-right: .05em;
}

.counter-num {
  font-family: var(--ff-heading);
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 8.5rem);
  color: var(--accent);
  line-height: 1;
}

.counter-copy {
  flex-shrink: 0;
}

.counter-copy h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: .35rem;
}

.counter-copy p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 26ch;
}

@media (max-width: 799px) {
  .counter-copy p { max-width: none; }
}

.counter-cta { flex-shrink: 0; }

/* ============================================================
   MODAL GRID (Presencial vs Online)
============================================================ */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 700px) {
  .modal-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   WHY-US CARDS GRID  (grid 3 columnas con foto en cada card)
============================================================ */
.why-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

/* Tablet: 4-col base; cada card ocupa 2 → 2 por fila */
@media (min-width: 640px) {
  .why-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .why-card-new { grid-column: span 2; }
  /* 5ª card sola: centrarla */
  .why-card-new:nth-child(5) { grid-column: 2 / 4; }
}

/* Desktop: 6-col base; cada card ocupa 2 → 3 por fila */
@media (min-width: 960px) {
  .why-cards-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .why-card-new { grid-column: span 2; }
  /* Fila 2 (cards 4 y 5): centradas con col vacía a cada lado */
  .why-card-new:nth-child(4) { grid-column: 2 / 4; }
  .why-card-new:nth-child(5) { grid-column: 4 / 6; }
}

/* ============================================================
   CTA FINAL
============================================================ */
.cta-final {
  position: relative;
  background: var(--primary);
  padding: var(--section-py) 0;
  overflow: hidden;
  text-align: center;
}

.cta-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.cta-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--teal);
  opacity: .06;
}

.cta-circle-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
}

.cta-circle-2 {
  width: 350px;
  height: 350px;
  bottom: -150px;
  left: -50px;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}

.cta-content h2 span { color: var(--accent); }

.cta-content > p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}

.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: rgba(0, 0, 0, 0.85);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

@media (min-width: 580px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover { color: var(--white); }

/* ============================================================
   REVEAL ANIMATION (JS-driven)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
