/* Estilos compartidos por las páginas interiores. */
.page-hero {
  padding: 116px 0 64px;
  color: var(--white);
  background:
    radial-gradient(ellipse at top right, #124c79, transparent 65%),
    var(--navy2);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  color: #c5d3e2;
  font-size: 14px;
}
.breadcrumbs a:hover {
  color: var(--white);
  text-decoration: underline;
}
.page-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}
.page-lead {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 18px;
  color: #d6e0ec;
}
.page-hero .hero-actions {
  margin-top: 30px;
}
.page-section {
  padding: 80px 0;
}
.page-soft {
  background: var(--soft);
}
.inner-page h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.inner-page h3 {
  color: var(--navy);
  line-height: 1.3;
}
.inner-page .eyebrow {
  font-size: 14px;
}
.page-heading {
  max-width: 760px;
  margin-bottom: 36px;
}
.page-heading > p:not(.eyebrow),
.prose > p,
.detail-card > p:not(.eyebrow),
.principles-grid p,
.method-grid > div > p:not(.eyebrow) {
  color: var(--muted);
}
.story-layout,
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 70px;
}
.prose p:first-child {
  margin-top: 0;
}
.prose p:last-child {
  margin-bottom: 0;
}
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.detail-card {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 14px;
  background: var(--white);
}
.detail-card h3 {
  margin: 0 0 20px;
  font-size: 26px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.principles-grid article {
  border-top: 2px solid var(--red);
  padding-top: 10px;
}
.page-cta {
  padding: 64px 0;
  background: var(--navy);
  color: var(--white);
}
.page-cta > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.inner-page .page-cta h2 {
  max-width: 760px;
  color: var(--white);
}
.page-cta p:not(.eyebrow) {
  color: #d6e0ec;
  margin-bottom: 0;
}
.page-cta .btn {
  flex-shrink: 0;
}
/* Catálogo con selección lateral y un único detalle visible. */
.service-browser {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.service-browser-sidebar {
  position: sticky;
  top: 100px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.service-list-label {
  margin: 8px 12px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.service-index {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-index button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  width: 100%;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.service-index button:hover {
  background: var(--soft);
}
.service-index button[aria-selected="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}
.service-index button[aria-selected="true"] span:last-child {
  color: #ffb6b8;
}
.service-index button:focus-visible,
.service-detail-panel .service-detail:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.text-link {
  color: var(--red);
  font-weight: 700;
}
.text-link:hover {
  text-decoration: underline;
}
.service-detail + .service-detail,
.method-detail + .method-detail {
  border-top: 1px solid var(--line);
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.service-detail figure {
  margin: 0;
}
.service-detail figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: 16px;
}
.service-detail figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.detail-intro {
  font-size: 19px;
  font-weight: 600;
}
.scope-list {
  padding-left: 22px;
  color: var(--muted);
}
.scope-list li {
  padding: 5px 0;
}
.scope-list li::marker {
  color: var(--red);
}
.service-detail .btn {
  margin-top: 12px;
}

.service-detail-panel {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.service-detail-panel .service-detail {
  padding: 0;
  border: 0;
  scroll-margin-top: 100px;
}
.service-detail-panel .service-detail[hidden] {
  display: none;
}
.service-detail-panel .service-detail-grid {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.service-detail-panel .prose {
  min-width: 0;
}
.service-detail-panel .prose h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 18px;
}
.service-detail-panel .detail-intro {
  font-size: 17px;
}
.service-detail-panel .service-gallery {
  margin: 24px 0 28px;
}
.service-gallery:focus-visible,
.service-gallery button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
.service-gallery-stage {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--soft);
}
.service-detail .service-gallery-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  max-height: 360px;
  border-radius: 0;
}
.service-gallery-navigation {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.service-gallery-navigation button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
}
.service-gallery-count {
  padding: 6px 14px;
  border-radius: 999px;
  background: #031b35df;
  color: white;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.service-gallery-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px;
  margin: 12px -4px 0;
}
.service-gallery-thumbnails button {
  flex: 0 0 86px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--soft);
  cursor: pointer;
}
.service-gallery-thumbnails button[aria-pressed="true"] {
  border-color: var(--red);
}
.service-detail .service-gallery-thumbnails img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
}
@media (max-width: 760px) {
  .service-browser {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .service-browser-sidebar {
    position: static;
  }
  .service-index {
    max-height: 272px;
    overflow-y: auto;
  }
  .service-detail-panel {
    padding: 22px;
  }
  .service-index button {
    min-height: 52px;
    padding: 12px;
  }
}
.scope-note {
  max-width: 880px;
}
.prose .scope-note {
  margin-top: 28px;
  padding: 22px;
  border-left: 3px solid var(--red);
  background: var(--white);
}
.example-intro {
  max-width: 820px;
}
.example-intro > p:not(.eyebrow) {
  color: var(--muted);
}
.step-index {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.step-index a {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 600;
}
.step-index a:hover {
  border-color: var(--red);
  color: var(--red);
}
.method-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.step-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
}
.example-card {
  padding: 32px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.example-card h3 {
  margin: 0;
  font-size: 24px;
}
.example-card > p:not(.eyebrow) {
  color: var(--muted);
}
.example-result {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.example-result strong {
  color: var(--navy);
}
.example-result p {
  margin-bottom: 0;
}
.contact-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.contact-options h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.contact-number {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--navy);
  font-weight: 800;
}
.contact-location {
  font-size: 14px;
  color: var(--muted);
}
.inner-page .contact-form h3 {
  margin: 0 0 24px;
  font-size: 24px;
}
.inner-page .contact-form label,
.inner-page .contact-form input,
.inner-page .contact-form select,
.inner-page .contact-form textarea {
  font-size: 16px;
}
.inner-page .form-note {
  font-size: 14px;
}
.faq-list details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
}
.faq-list summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
.faq-list p {
  color: var(--muted);
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .story-layout,
  .faq-layout,
  .service-detail-grid,
  .method-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-options {
    grid-template-columns: 1fr;
  }
  .service-detail figure img {
    aspect-ratio: 16 / 9;
  }
  .page-cta > .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 620px) {
  .page-hero {
    padding: 96px 0 48px;
  }
  .breadcrumbs {
    margin-bottom: 28px;
  }
  .page-section {
    padding: 52px 0;
  }
  .page-lead {
    font-size: 16px;
  }
  .purpose-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .detail-card,
  .example-card {
    padding: 24px;
  }
  .step-index {
    flex-direction: column;
  }
  .page-cta {
    padding: 48px 0;
  }
}
