/* Layout — páginas internas */

.page-main { display: flex; flex-direction: column; }

.page-intro + .page-jump {
  margin-top: -0.5rem;
  padding-bottom: 1.25rem;
  background: var(--white);
}
.page-jump .container { padding-top: 0; padding-bottom: 0; }
.page-jump-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
@media (min-width: 768px) {
  .page-jump-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.25rem;
    padding: 0.85rem 1.25rem;
  }
}
.page-jump-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
  flex-shrink: 0;
}
.page-jump-label::before {
  content: '';
  width: 3px;
  height: 1rem;
  border-radius: 2px;
  background: var(--gold);
}
@media (min-width: 768px) {
  .page-jump-label {
    padding-right: 1rem;
    border-right: 1px solid var(--gray-100);
  }
}
.page-jump-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.5rem;
  width: 100%;
  justify-items: center;
}
@media (min-width: 768px) {
  .page-jump-nav {
    display: flex;
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
  }
}
.page-jump-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.page-jump-nav a:hover { border-color: rgba(232, 185, 35, 0.55); }
.page-jump-nav a.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.page-block {
  padding: var(--section-y) 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.page-block--alt { background: var(--gray-50); }
.page-block-head { max-width: 640px; margin-bottom: 1.5rem; }
.page-block-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}
.page-block-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
}
.page-block-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.page-block-head p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.service-catalog { display: grid; gap: 0.65rem; }
@media (min-width: 768px) { .service-catalog { grid-template-columns: 1fr 1fr; } }
.catalog-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.page-block--alt .catalog-item { background: var(--white); }
.page-main--service .service-catalog {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .page-main--service .service-catalog--many {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }
}
.page-main--service .catalog-item {
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius-lg);
  align-items: flex-start;
}
.page-main--service .catalog-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 185, 35, 0.45);
}
.catalog-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 185, 35, 0.45);
}
.catalog-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  color: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}
.catalog-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.catalog-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.45;
}

.benefits-row { display: grid; gap: 0.75rem; }
@media (min-width: 600px) { .benefits-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .benefits-row--4 { grid-template-columns: repeat(4, 1fr); } }
.benefit-tile {
  padding: 1.15rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-tile .benefit-icon { margin: 0 auto 0.65rem; }
.benefit-tile h3 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.benefit-tile p { font-size: 0.8rem; color: var(--text-light); margin: 0; line-height: 1.4; }

.areas-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 480px) { .areas-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
.area-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.area-chip:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.area-chip h3 { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.area-chip p { font-size: 0.75rem; color: var(--text-light); margin: 0; line-height: 1.35; }

.page-services-nav {
  padding: var(--section-y-sm) 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  border-top: 1px solid var(--gray-100);
}
.page-services-nav h3 {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.page-block .mission-duo { margin-top: 0; }

.contact-page-block,
.contact-map-wrap {
  padding: var(--section-y) 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.contact-form-wrap { scroll-margin-top: calc(var(--header-h) + 24px); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 992px) {
  .contact-layout { grid-template-columns: 340px 1fr; }
}
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.contact-sidebar > p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 0 0.5rem;
}
.contact-map-wrap {
  margin-top: var(--section-y-sm);
  padding-bottom: var(--section-y-sm);
}
.contact-map-wrap .map-embed {
  margin-top: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-height: 360px;
}

.page-hero--about .page-hero-panel { grid-template-columns: repeat(2, 1fr); }
.page-main .section { padding: 0; }
.page-main > .page-intro { flex-shrink: 0; }

/* Banner unificado servicios (hero + tabs + imagen) */
.service-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy) 42%, var(--navy-light) 100%);
}
.service-banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.service-banner-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}
.service-banner-bg .page-hero-orb--1 {
  width: 320px;
  height: 320px;
  background: var(--gold);
  opacity: 0.28;
  top: -100px;
  right: 5%;
}
.service-banner-bg .page-hero-orb--2 {
  width: 240px;
  height: 240px;
  background: var(--color-secondary);
  opacity: 0.3;
  bottom: 10%;
  left: -5%;
}
.service-banner .page-hero--service.page-hero--rich {
  background: transparent;
  padding: calc(var(--header-h) + 1.25rem) 0 1.25rem;
}
.service-banner .page-hero--service .container {
  position: relative;
  z-index: 2;
}
.page-hero--service.page-hero--rich {
  padding: calc(var(--header-h) + 1.5rem) 0 2rem;
}
.service-banner .service-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 920px;
  margin: 0 auto;
}
.page-hero--service .service-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 880px;
}
.service-hero-head { display: flex; align-items: center; gap: 1.25rem; }
.service-hero-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}
.service-hero-icon img { width: 52px; height: 52px; object-fit: contain; }
.service-hero-titles { flex: 1; min-width: 0; }
.service-hero-titles .page-badge { margin-bottom: 0.45rem; }
.service-hero-titles h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 0;
}
.page-hero--service .lead { max-width: none; margin: 0; line-height: 1.65; }
.page-hero--service .page-hero-actions { margin-bottom: 0; }
.service-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.service-metric {
  text-align: center;
  padding: 0.9rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}
.service-metric strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
}
.service-metric span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}
@media (max-width: 599px) {
  .service-hero-head { flex-direction: column; align-items: flex-start; }
  .service-hero-metrics { grid-template-columns: 1fr; }
  .service-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0.75rem 1rem;
  }
  .service-metric span { text-align: right; max-width: 58%; }
}

/* Páginas de servicio — estructura ordenada */
.page-main--service .page-intro,
.page-main--service .page-jump { display: none; }

.service-banner .service-tabs {
  position: relative;
  top: auto;
  z-index: 2;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}
.service-banner .service-tabs-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0 1rem;
}
.service-banner .service-tab {
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  transition: all var(--transition);
}
.service-banner .service-tab:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(232, 185, 35, 0.55);
  color: var(--white);
}
.service-banner .service-tab.is-active {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  font-weight: 700;
}

.service-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 85;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 4px 16px rgba(12, 31, 74, 0.05);
}
.service-tabs-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0;
}
.service-tab {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 50px;
  transition: all var(--transition);
}
.service-tab:hover {
  border-color: rgba(232, 185, 35, 0.5);
  background: var(--white);
}
.service-tab.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Imagen dentro del banner */
.service-banner .service-visual {
  padding: 0 0 2.25rem;
  background: transparent;
  position: relative;
  z-index: 2;
}
.service-visual {
  padding: 1.25rem 0 0;
  background: var(--white);
}
.service-visual .container {
  display: flex;
  justify-content: center;
}
.service-banner .service-visual-frame {
  border: 2px solid rgba(232, 185, 35, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.service-visual-frame {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  aspect-ratio: 21 / 9;
  max-height: 320px;
}
@media (min-width: 768px) {
  .service-visual-frame { aspect-ratio: 2.4 / 1; max-height: 360px; }
}
.service-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0 auto;
}
.service-visual-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 31, 74, 0.15) 0%,
    rgba(12, 31, 74, 0.45) 55%,
    rgba(12, 31, 74, 0.75) 100%
  );
  pointer-events: none;
}
.service-visual-caption {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1;
  padding: 1.25rem 1.5rem;
  width: 100%;
  max-width: 560px;
  text-align: center;
}
.service-visual-caption strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.service-visual-caption span {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.service-inline-media {
  margin: 0 auto 1.75rem;
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.service-inline-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: center center;
  margin: 0 auto;
}

.service-shell {
  background: var(--white);
  position: relative;
  z-index: 1;
  border-radius: 20px 20px 0 0;
  margin-top: -12px;
  box-shadow: 0 -8px 32px rgba(12, 31, 74, 0.08);
}
.page-main--service .service-section {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.page-main--service .service-shell > .service-section:first-child {
  padding-top: clamp(2rem, 4vw, 2.75rem);
}
.page-main--service .service-section.page-block--alt {
  background: var(--gray-50);
}
.page-main--service .service-section .page-block-head {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 2rem;
}
.page-main--service .service-section .page-block-label {
  justify-content: center;
}
.page-main--service .service-section .page-block-label::before {
  display: none;
}
.page-main--service .areas-grid {
  max-width: 960px;
  margin: 0 auto;
}
.page-main--service .benefits-row,
.page-main--service .process-mini {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.page-main--service .accordion {
  max-width: 760px;
  margin: 0 auto;
}
.page-main--service .highlight-block {
  max-width: 760px;
  margin: 0 auto;
}
.page-main--service .tech-visual {
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

.service-related {
  padding: 2.5rem 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.service-related h3 {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.service-related .related-pills {
  justify-content: center;
}
