/* =========================
   BASE
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
}

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

/* =========================
   CONTENIDO
   ========================= */

main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 70px 0;
}

/* =========================
   TIPOGRAFÍA
   ========================= */

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  color: #243b53;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  margin-bottom: 18px;
}

/* =========================
   ENLACES
   ========================= */

a {
  color: #2f6f73;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   MÓVIL
   ========================= */

@media (max-width: 700px) {

  main {
    padding: 0 20px;
  }

  section {
    padding: 50px 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}
/* =========================
   CABECERA
   ========================= */

.site-header {
  padding: 32px 24px 28px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.site-header h1 {
  margin-bottom: 6px;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.site-header p {
  margin: 0;
  color: #2f6f73;
  font-size: 1.05rem;
  font-weight: 600;
}
.site-header-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-header-brand {
  text-align: left;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: #243b53;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #2f6f73;
  text-decoration: none;
}


/* Móvil */

@media (max-width: 700px) {

  .site-header-content {
    flex-direction: column;
    gap: 20px;
  }

  .site-header-brand {
    text-align: center;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }

  .site-nav a {
    padding: 10px 8px;
    text-align: center;
    font-size: 0.9rem;
  }

  .site-nav a:nth-child(odd) {
    border-right: 1px solid #d5dddd;
  }

  .site-nav a:nth-child(-n+2) {
    border-bottom: 1px solid #d5dddd;
  }

}
/* =========================
   HERO
   ========================= */

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  padding-left: 20px;
}

.hero h2 {
  font-size: 2.8rem;
  max-width: 560px;
  margin: 0 0 28px;
  line-height: 1.15;
}

.hero p {
  max-width: 520px;
  margin: 0 0 34px;
  font-size: 1.15rem;
  color: #5f6c72;
}

.hero a {
  display: inline-block;
  padding: 13px 28px;
  background-color: #2f6f73;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.hero a:hover {
  background-color: #24585b;
  text-decoration: none;
}

.hero-image {
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}


/* Móvil */

@media (max-width: 700px) {

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }

  .hero-content {
    padding-left: 0;
    text-align: center;
  }

  .hero h2 {
    font-size: 2.1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero p {
    font-size: 1.05rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

}

/* =========================
   HERO EN MÓVIL
   ========================= */

@media (max-width: 700px) {

  .hero {
    padding: 70px 20px;
  }

  .hero h2 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 1.05rem;
  }
}
/* =========================
   PROBLEMAS DIGESTIVOS
   ========================= */

.problemas {
  padding-top: 70px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.problemas > h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 42px;
}

.problemas article {
  padding: 30px;
  border: 1px solid #e1e7e8;
  border-radius: 8px;
  background-color: #f8faf9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problemas article h3 {
  color: #2f6f73;
  margin-bottom: 12px;
}

.problemas article p {
  margin-bottom: 0;
  color: #5f6c72;
}

.problemas article:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(36, 59, 83, 0.08);
}


/* Móvil */

@media (max-width: 700px) {

  .problemas {
    grid-template-columns: 1fr;
    gap: 16px;
  }

}
/* =========================
   SOBRE MÍ
   ========================= */

.sobre-mi {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
}

.sobre-mi-contenido {
  min-width: 0;
}

.sobre-mi h2 {
  margin-bottom: 32px;
}

.sobre-mi h3 {
  margin-top: 55px;
  margin-bottom: 22px;
  color: #2f6f73;
}

.sobre-mi p {
  color: #4f5b60;
  margin-bottom: 22px;
}

.sobre-mi-imagen {
  position: sticky;
  top: 30px;
}

.sobre-mi-imagen img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}


/* Móvil */

@media (max-width: 700px) {

  .sobre-mi {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .sobre-mi-imagen {
    position: static;
    max-width: 600px;
    margin: 0 auto;
  }

}
/* =========================
   PARA PADRES
   ========================= */

.para-padres {
  text-align: center;
  background-color: #f8faf9;
  padding: 75px 24px;
}

.para-padres h2 {
  margin-bottom: 24px;
}

.para-padres p {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: #5f6c72;
}

.para-padres strong {
  color: #2f6f73;
}
/* =========================
   CTA Y CENTROS
   ========================= */

.cta-centros {
  text-align: center;
  background-color: #f8faf9;
  padding: 85px 24px;
}

.cta-centros h2 {
  margin-bottom: 18px;
}

.cta-centros > p {
  max-width: 600px;
  margin: 0 auto 45px;
  color: #5f6c72;
}

.lista-centros {
  max-width: 750px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lista-centros > div {
  padding: 24px 18px;
  background-color: #ffffff;
  border: 1px solid #e1e7e8;
  border-radius: 8px;
}

.lista-centros h3 {
  margin-bottom: 8px;
  color: #2f6f73;
  font-size: 1.15rem;
}

.lista-centros p {
  margin: 0;
  color: #5f6c72;
}
.lista-centros a {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  background-color: #2f6f73;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lista-centros a:hover {
  background-color: #24585b;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(36, 59, 83, 0.08);
  text-decoration: none;
}

.lista-centros small {
  display: block;
  margin-top: 10px;
  color: #6b7478;
  font-size: 0.85rem;
  line-height: 1.4;
}


/* Móvil */

@media (max-width: 700px) {

  .lista-centros {
    grid-template-columns: 1fr;
    gap: 14px;
  }

}
/* =========================
   PIE DE PÁGINA
   ========================= */

footer {
  padding: 30px 24px;
  text-align: center;
  border-top: 1px solid #e1e7e8;
  color: #6b7478;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}
/* =========================
   AJUSTE SOBRE MÍ
   ========================= */

.sobre-mi {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
}

.sobre-mi-contenido {
  min-width: 0;
}

.sobre-mi-imagen {
  width: 100%;
}

.sobre-mi-imagen img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (max-width: 700px) {

  .sobre-mi {
    grid-template-columns: 1fr;
    gap: 35px;
  }

}
.sobre-mi-imagen {
  max-width: 430px;
  margin: 0 auto;
}
