/* Plantilla de pantalla de servicio (replica del post de WordPress). */

.post-banner {
  position: relative;
  display: flex;
  min-height: 560px;
  align-items: center;
  justify-content: center;
  padding: 150px 0 80px;
  background: var(--navy) center / cover no-repeat;
  color: var(--white);
  text-align: center;
  isolation: isolate;
}

.post-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 27, 64, 0.35) 0%, rgba(9, 27, 64, 0.82) 100%);
}

.post-banner .section-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.post-banner h1 {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs li + li::before {
  content: "|";
  margin: 0 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.breadcrumbs li:last-child {
  color: var(--lime);
}

.breadcrumbs a:hover {
  color: var(--lime);
}

.post-wrap {
  width: min(calc(100% - 30px), 1140px);
  margin-inline: auto;
  padding-block: 70px 110px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 34px;
  font-size: 14px;
  color: var(--body);
}

.post-meta .tag-pill {
  display: inline-block;
  padding: 4px 14px 5px;
  border-radius: 50px;
  background: var(--lime);
  color: var(--navy);
  font-size: 13px;
  font-style: italic;
  font-weight: 650;
  line-height: 1;
}

.post-hero {
  margin: 0 0 46px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.post-hero img {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.post-body {
  color: var(--body);
  font-size: 18px;
  line-height: 1.75;
}

.post-body p {
  margin: 0 0 1.6em;
}

.post-body h5 {
  margin: 2.2em 0 0.8em;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.post-body blockquote {
  margin: 2.2em 0;
  padding: 10px 0 10px 28px;
  border-left: 5px solid var(--lime);
  color: var(--navy);
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

.post-body blockquote p {
  margin: 0;
}

.post-body figure {
  margin: 2.2em auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.post-body figure img {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

/* Imágenes insertadas por el editor (Quill inserta <img> suelto, a veces
   dentro de <p>): mismo acabado Corales, centradas y redondeadas. */
.post-body > img,
.post-body p > img {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin-inline: auto;
  border-radius: 18px;
}

.post-body p:has(> img:only-child) {
  margin: 2.2em auto;
  text-align: center;
}

.post-body figcaption {
  margin-top: 10px;
  color: var(--body);
  font-size: 14px;
  text-align: center;
}

.post-body ul {
  margin: 0 0 1.6em;
  padding-left: 1.2em;
}

.post-body li {
  margin-bottom: 0.4em;
}

.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--mist);
  font-size: 14px;
  color: var(--body);
}

.post-footer .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-footer .tags span {
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--mist-light);
  color: var(--navy);
  font-size: 13px;
}

.related {
  margin-top: 90px;
}

.related h2 {
  margin: 0 0 30px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.related__card {
  display: block;
  padding: 26px;
  border-radius: 20px;
  background: var(--mist-light);
  transition: background-color 180ms ease, transform 180ms ease;
}

.related__card:hover,
.related__card:focus-visible {
  background: var(--lime);
  transform: translateY(-3px);
}

.related__card small {
  display: block;
  margin-bottom: 10px;
  color: var(--body);
  font-size: 13px;
}

.related__card strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.3;
}

/* Páginas de contenido (submenú Acerca de). */

.page-intro {
  max-width: 880px;
  margin-bottom: 64px;
}

.page-intro--centrado {
  max-width: none;
  text-align: center;
}

.page-intro h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.page-intro p + p {
  margin-top: 1em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  margin-bottom: 64px;
}

.stat-box {
  padding: 32px 30px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--white);
}

.stat-box strong {
  display: block;
  color: var(--lime);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

.stat-box span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 64px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--mist-light);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}

.check-list li::before {
  content: "\e829";
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  font-family: "lte-font";
  font-size: 12px;
}

.feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 64px;
}

.feature-pair article {
  padding: 36px 32px;
  border-radius: 20px;
  background: var(--mist-light);
}

.feature-pair h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
}

.feature-pair p {
  margin: 0;
  color: var(--body);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 30px;
}

.team-card {
  padding: 0;
  text-align: center;
  background: transparent;
}

.team-card__avatar {
  display: grid;
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
  font-size: 26px;
  font-weight: 700;
}

.team-card__marco {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 12px solid var(--mist);
  border-radius: 50%;
  transition: border-width 0.3s ease;
}

.team-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-card__marco {
  border-width: 16px;
}

.team-card:hover .team-card__photo {
  transform: scale(1.1);
}

.team-card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
}

.team-card p {
  margin: 0;
  color: var(--body);
  font-size: 15px;
}

.faq-group {
  margin-bottom: 56px;
}

.faq-group h2 {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 700;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--mist-light);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 26px;
  cursor: pointer;
  color: var(--navy);
  font-size: 17px;
  font-weight: 650;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--navy);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  background: var(--lime);
}

.faq-item p {
  margin: 0;
  padding: 4px 26px 26px;
  color: var(--body);
  line-height: 1.7;
}

.plan-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--mist-light);
}

.plan-item time {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.plan-item time strong {
  display: block;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.plan-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.plan-item p {
  margin: 0;
  color: var(--body);
  line-height: 1.55;
}

.plan-badge {
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.plan-badge--lime {
  background: var(--lime);
  color: var(--navy);
}

.plan-item--vacio {
  display: block;
}

.plan-item--vacio h3 {
  margin: 0 0 8px;
}

/* Página de contacto. */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.1;
}

.contact-lines {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}

.contact-line {
  display: block;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--mist-light);
}

.contact-line small {
  display: block;
  margin-bottom: 4px;
  color: var(--body);
  font-size: 13px;
}

.contact-line strong {
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
}

.contact-line strong .icon {
  margin-right: 10px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 40px 36px;
  border-radius: 22px;
  background: var(--navy);
  color: var(--white);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.contact-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stat-row,
  .team-grid,
  .feature-pair,
  .check-list {
    grid-template-columns: 1fr 1fr;
  }

  .plan-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .stat-row,
  .team-grid,
  .feature-pair,
  .check-list {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 600px) {
  .post-banner {
    min-height: 440px;
    padding: 130px 0 60px;
  }

  .post-body {
    font-size: 16px;
  }

  .post-body blockquote {
    font-size: 21px;
  }
}

/* Fichas de entradas (generadas desde el área privada). */

.post-body h2,
.post-body h3,
.post-body h4 {
  margin: 2.2em 0 0.8em;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

.post-body h2 { font-size: 30px; }
.post-body h3 { font-size: 25px; }
.post-body h4 { font-size: 21px; }

.entry-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 2.2em auto;
  max-width: 1140px;
  justify-items: center;
}

.entry-gallery figure {
  margin: 0;
  width: 100%;
  display: grid;
  place-items: center;
}

.entry-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  margin-inline: auto;
}

/* Etiquetas y relacionadas estilo Corales (plantilla base de fichas). */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2.2em 0 0;
}

.post-tags span {
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--mist-light);
  color: var(--navy);
  font-size: 13px;
  font-weight: 650;
}

.related__card--img {
  padding: 0;
  overflow: hidden;
}

.related__card--img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 20px 20px 0 0;
}

.related__card--img small,
.related__card--img strong {
  padding-inline: 26px;
}

.related__card--img small {
  margin-top: 18px;
}

.related__card--img strong {
  padding-bottom: 26px;
}

@media (max-width: 767px) {
  .entry-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
