/* ============================================================
   ESCUELA CON CONFIANZA – styles.css
   Concepto: "Palabras que respiran" — minimalismo editorial
   Mobile-first. Sin dependencias externas.
   ============================================================ */


/* ============================================================
   1. VARIABLES Y RESET
   ============================================================ */

:root {
  /* Colores */
  --color-brand:       #01aeab;
  --color-brand-dark:  #018f8d;
  --color-black:       #111111;
  --color-near-black:  #1a1a1a;
  --color-dark:        #222222;
  --color-text:        #333333;
  --color-text-muted:  #666666;
  --color-border:      #e8e8e8;
  --color-bg:          #ffffff;
  --color-bg-soft:     #f7f7f7;
  --color-white:       #ffffff;

  /* Tipografía */
  --font-display:  'Georgia', 'Times New Roman', serif;
  --font-body:     -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Espaciado base */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;

  /* Layout */
  --max-width: 1140px;
  --gutter:    1.25rem;

  /* Transiciones */
  --transition: 0.2s ease;

  /* Header */
  --header-height: 68px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul {
  list-style: none;
}

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

/* ============================================================
   2. UTILIDADES GLOBALES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section--alt {
  background-color: var(--color-bg-soft);
}

.section--dark {
  background-color: var(--color-near-black);
  color: var(--color-white);
}

/* Encabezados de sección reutilizables */
.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.section__label--light {
  color: var(--color-brand);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: normal;
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}

.section__title--light {
  color: var(--color-white);
}

.section__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 52ch;
  line-height: 1.75;
}

.section__header {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}


/* ============================================================
   3. BOTONES
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75em 1.75em;
  border: 2px solid transparent;
  transition: background-color var(--transition),
              color var(--transition),
              border-color var(--transition),
              transform var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--color-brand);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--light {
  background-color: var(--color-white);
  color: var(--color-brand);
  border-color: var(--color-white);
}

.btn--light:hover,
.btn--light:focus-visible {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}


/* ============================================================
   4. HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.header__logo img {
  height: 44px;
  width: auto;
}

/* Nav desktop */
.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brand);
  transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link.is-active {
  color: var(--color-brand);
}

.header__nav-link.is-active::after,
.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-brand);
  padding: 0.55em 1.25em;
  transition: background-color var(--transition);
}

.header__nav-cta:hover,
.header__nav-cta:focus-visible {
  background-color: var(--color-brand-dark);
}

/* Hamburger */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
}

.header__hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Nav mobile overlay */
.header__nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  padding: var(--space-xl) var(--gutter);
  z-index: 99;
}

.header__nav.is-open .header__nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.header__nav.is-open .header__nav-link,
.header__nav.is-open .header__nav-cta {
  font-size: 1.25rem;
}

.header__nav.is-open .header__nav-cta {
  display: inline-flex;
  padding: 0.75em 1.75em;
}


/* ============================================================
   5. HERO (Inicio)
   ============================================================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-2xl);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.65) 60%,
    rgba(0,0,0,0.82) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: var(--color-white);
  padding-top: calc(var(--header-height) + var(--space-lg));
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  max-width: 48ch;
  line-height: 1.65;
}


/* ============================================================
   6. MÉTRICAS
   ============================================================ */

.metrics {
  background-color: var(--color-black);
  padding: var(--space-lg) 0;
}

.metrics__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.metrics__item {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.metrics__item:last-child {
  border-bottom: none;
}

.metrics__number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: normal;
  color: var(--color-white);
  line-height: 1;
}

.metrics__plus {
  color: var(--color-brand);
}

.metrics__label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  max-width: 24ch;
  line-height: 1.4;
}


/* ============================================================
   7. SERVICIOS
   ============================================================ */

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.service-card {
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-card__img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.03);
}

.service-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--color-dark);
  line-height: 1.3;
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

.service-card__body .btn {
  align-self: flex-start;
  margin-top: var(--space-xs);
}


/* ============================================================
   8. ABOUT PREVIEW (HOME)
   ============================================================ */

.about-preview__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.about-preview__img-col {
  width: 100%;
}

.about-preview__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-preview__text-col {
  max-width: 560px;
}

.about-preview__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-preview__tags {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: var(--space-lg);
}

.tag {
  display: inline-block;
  padding: 0.45em 0.9em;
  border-left: 3px solid var(--color-brand);
  background-color: rgba(1,174,171,0.06);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.4;
}


/* ============================================================
   9. GUÍAS
   ============================================================ */

.guides__inner {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-xl);
  align-items: center;
}

.guides__text-col {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.guides__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.guides__img-col {
  width: 100%;
  max-width: 380px;
}

.guides__img {
  width: 100%;
  object-fit: contain;
  drop-shadow: 0 8px 24px rgba(0,0,0,0.1);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}


/* ============================================================
   10. TESTIMONIOS
   ============================================================ */
/* =========================
   10. TESTIMONIOS
========================= */

.testimonials {
  padding: 96px 0;
  background: #f5f5f5;
}

.testimonials__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 56px;
  align-items: center;
}

.testimonials__content {
  min-width: 0;
}

.testimonials__text {
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin: 24px 0 32px;
}

.testimonials__video-col {
  width: 100%;
  justify-self: end;
}

.testimonials__video-link {
  display: block;
  width: 100%;
}

.testimonials__video-thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* móvil */
@media (max-width: 900px) {
  .testimonials__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .testimonials__video-col {
    justify-self: stretch;
  }

  .hero__bg img {
    object-position: 70% center;
  }
}



/* ============================================================
   12. WHATSAPP FLOTANTE
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 54px;
  height: 54px;
  background-color: #25d366;
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #25d366;
  outline-offset: 3px;
}


/* ============================================================
   13. PÁGINA QUIÉNES SOMOS – HERO / INTRO
   ============================================================ */

.page-hero {
  border-bottom: 1px solid var(--color-border);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.page-hero__text {
  max-width: 600px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: normal;
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}

.page-hero__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 56ch;
}

.page-hero__img-col {
  width: 100%;
}

.page-hero__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}


/* ============================================================
   14. VALORES
   ============================================================ */

.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.value-card {
  padding: var(--space-lg) var(--space-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-brand);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: box-shadow var(--transition);
}

.value-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

.value-card__icon {
  color: var(--color-brand);
}

.value-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--color-dark);
}

.value-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}


/* ============================================================
   15. PERFILES
   ============================================================ */

.profile__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: flex-start;
}

.profile__img-col {
  width: 100%;
}

.profile__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  max-height: 500px;
}

.profile__text-col {
  max-width: 560px;
}

.profile__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: normal;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}

.profile__bio {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.profile__quote {
  border-left: 3px solid var(--color-brand);
  padding-left: var(--space-md);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.65;
}

.profile__quote cite {
  display: block;
  margin-top: 0.4em;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--color-text-muted);
}


/* ============================================================
   16. CTA BAND
   ============================================================ */

.cta-band {
  background-color: var(--color-brand);
  color: var(--color-white);
  text-align: center;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: normal;
  color: var(--color-white);
  line-height: 1.25;
}

.cta-band__text {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 40ch;
  line-height: 1.65;
}

.cta-band .btn--primary {
  background-color: var(--color-white);
  color: var(--color-brand);
  border-color: var(--color-white);
}

.cta-band .btn--primary:hover {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}


/* ============================================================
   17. TABLET — 640px+
   ============================================================ */

@media (min-width: 640px) {

  :root {
    --gutter: 2rem;
  }

  /* Métricas */
  .metrics__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .metrics__item {
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-lg) var(--space-md);
  }

  .metrics__item:last-child {
    border-right: none;
  }

  /* Servicios */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Valores */
  .values__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__nav-list,
  .footer__social-list {
    gap: 0.6em;
  }

}


/* ============================================================
   18. ESCRITORIO — 900px+
   ============================================================ */

@media (min-width: 900px) {

  :root {
    --gutter: 2.5rem;
  }

  /* Header: mostrar nav desktop, ocultar hamburguesa */
  .header__nav {
    display: flex;
  }

  .header__hamburger {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: 96vh;
  }

  /* Servicios: 3 columnas */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* About preview */
  .about-preview__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .about-preview__img-col {
    flex: 0 0 44%;
  }

  .about-preview__text-col {
    flex: 1;
  }

  /* Guías */
  .guides__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .guides__text-col {
    flex: 1;
    max-width: 480px;
  }

  .guides__img-col {
    flex: 0 0 40%;
    max-width: none;
  }

  /* Testimonios */
  .testimonials__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .testimonials__text {
    flex: 0 0 42%;
  }

  .testimonials__video-col {
    flex: 1;
  }

  /* Page hero */
  .page-hero__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .page-hero__text {
    flex: 1;
  }

  .page-hero__img-col {
    flex: 0 0 42%;
  }

  .page-hero__img {
    aspect-ratio: 4/3;
  }

  /* Perfiles */
  .profile__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2xl);
  }

  .profile__inner--reversed {
    flex-direction: row-reverse;
  }

  .profile__img-col {
    flex: 0 0 38%;
  }

  .profile__text-col {
    flex: 1;
  }

  .profile__img {
    max-height: 560px;
  }

}


/* ============================================================
   19. ACCESIBILIDAD — FOCUS
   ============================================================ */

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}

/* Ocultar visualmente pero mantener para lectores */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* =========================================================
   11. FOOTER
========================================================= */

.footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.86);
  padding: 56px 0 0;
  margin-top: 0px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.footer__brand {
  max-width: 340px;
}

.footer__logo {
  width: 140px !important;
  max-width: 140px !important;
  height: auto !important;
  display: block;
  margin-bottom: 20px;
}

.footer__text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.64);
}

.footer__title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  color: #ffffff;
}

.footer__nav,
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__nav a,
.footer__social a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__nav a:hover,
.footer__social a:hover {
  color: #01aeab;
}

.footer__bottom {
  margin-top: 44px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bottom p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 900px) {
  .footer {
    padding: 56px 0 0;
    margin-top: 56px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    max-width: none;
  }

  .footer__logo {
    width: 150px !important;
    max-width: 150px !important;
  }

  .footer__bottom {
    margin-top: 32px;
  }
}
