/**
 * Capa visual premium — páginas dedicadas (servicios por categoría + sobre nosotros).
 * Depende de variables :root del bundle (servicios-categoria-bundle.css).
 */

/* ─── Base dedicada ─── */
body.page-cat-dedicated,
body.page-nosotros-dedicated {
  letter-spacing: 0.01em;
}

.page-cat-dedicated__main,
.page-nosotros-dedicated__main {
  overflow-x: hidden;
}

/* ─── Hero (categorías) ─── */
.page-cat-hero {
  position: relative;
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(3.25rem, 8vw, 5rem);
  color: #e2e8f0;
  isolation: isolate;
}

.page-cat-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% -10%, rgba(212, 175, 55, 0.22), transparent 52%),
    radial-gradient(ellipse 90% 70% at 100% 30%, rgba(100, 116, 139, 0.18), transparent 50%),
    linear-gradient(165deg, #0a0e17 0%, #111a2e 38%, #0f172a 72%, #0c111c 100%);
}

.page-cat-hero__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.85), rgba(242, 220, 120, 0.65), rgba(212, 175, 55, 0.85), transparent);
  opacity: 0.95;
}

.page-cat-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.page-cat-breadcrumb {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(226, 232, 240, 0.55);
  margin-bottom: 1.25rem;
}

.page-cat-breadcrumb a {
  color: rgba(253, 224, 71, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-cat-breadcrumb a:hover {
  color: #fef9c3;
}

.page-cat-breadcrumb__sep {
  margin: 0 0.45rem;
  opacity: 0.45;
}

.page-cat-breadcrumb__here {
  color: rgba(248, 250, 252, 0.92);
  font-weight: 600;
}

.page-cat-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Open Sans", "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin: 0 0 1.35rem;
}

.page-cat-hero__title {
  font-family: "Open Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.07;
  margin: 0 0 1.1rem;
  color: #ffffff;
}

.page-cat-hero__lead {
  font-family: "Open Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.82);
  max-width: 500px;
  margin: 0 0 1.35rem;
  font-weight: 400;
}

.page-cat-hero__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1.75rem;
  padding: 0;
}

.page-cat-hero__chips li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: rgba(254, 243, 199, 0.95);
}

.page-cat-hero__nav-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

.page-cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(135deg, #f2dc78 0%, #d4af37 45%, #c4a632 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.page-cat-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

.page-cat-pill[data-active="true"] {
  box-shadow:
    0 0 0 2px rgba(253, 224, 71, 0.95),
    0 8px 28px rgba(212, 175, 55, 0.35);
}

.page-cat-pill--outline {
  background: transparent;
  color: rgba(248, 250, 252, 0.92);
  border-color: rgba(248, 250, 252, 0.35);
  box-shadow: none;
}

.page-cat-pill--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(253, 224, 71, 0.55);
}

/* ─── Catálogo: tarjeta flotante sobre el hero ─── */
.page-cat-catalog {
  position: relative;
  z-index: 2;
  margin-top: clamp(-2.5rem, -4vw, -1.75rem);
  padding-top: 0 !important;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem) !important;
}

.page-cat-catalog > .container {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 24px 56px -12px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem) clamp(2rem, 4vw, 2.75rem);
}

.page-cat-region {
  padding-top: 0.25rem;
}

.page-cat-region > .section-header {
  margin-bottom: 2rem;
}

.page-cat-region .section-title {
  font-family: "Open Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* Tarjetas de servicio: relieve premium */
.page-cat-catalog .card {
  border-radius: 14px !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 14px 36px -16px rgba(15, 23, 42, 0.1) !important;
}

.page-cat-catalog .card-highlight {
  border-color: rgba(212, 175, 55, 0.42) !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.12),
    0 18px 44px -14px rgba(212, 175, 55, 0.18) !important;
}

/* ─── CTA final ─── */
.page-cat-cta {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4rem);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, transparent 100%),
    linear-gradient(165deg, #0f172a 0%, #151f33 50%, #0f172a 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  color: #e2e8f0;
}

.page-cat-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.page-cat-cta__title {
  font-family: "Open Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: #fafaf9;
}

.page-cat-cta__text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.78);
}

.page-cat-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: center;
}

/* Misma escala y jerarquía que los botones del header (layout.js) */
.page-cat-cta__actions .btn {
  text-decoration: none;
  flex: 0 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.6rem 1.35rem;
  font-family: "Open Sans", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.page-cat-cta__actions .btn-primary {
  color: #1c1917 !important;
  padding: 0.65rem 1.35rem !important;
  border: 1px solid rgba(188, 152, 40, 0.42) !important;
  background: linear-gradient(135deg, #c4a632 0%, #d4af37 48%, #f2dc78 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 28px rgba(125, 95, 40, 0.26) !important;
}

.page-cat-cta__actions .btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.page-cat-cta__actions .btn-outline {
  border-color: rgba(248, 250, 252, 0.35) !important;
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.page-cat-cta__actions .btn-outline:hover {
  border-color: rgba(253, 224, 71, 0.55) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.page-cat-cta__actions .btn-whatsapp {
  background: linear-gradient(180deg, #3be57f 0%, #25d366 42%, #1ebe5b 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35) !important;
}

.page-cat-cta__actions .btn-whatsapp::before {
  display: none !important;
}

@media (max-width: 720px) {
  .page-cat-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-cat-cta__actions {
    width: 100%;
  }

  .page-cat-cta__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: min(100%, 12rem);
  }
}

/* ─── Sobre nosotros (misma familia visual) ─── */
.page-nosotros-hero {
  position: relative;
  padding: clamp(2.75rem, 7vw, 4.25rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  color: #e2e8f0;
  isolation: isolate;
}

.page-nosotros-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 90% at 50% -20%, rgba(212, 175, 55, 0.2), transparent 55%),
    linear-gradient(168deg, #0a0e17 0%, #121a2b 45%, #0f172a 100%);
}

.page-nosotros-hero__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
}

.page-nosotros-hero .container {
  position: relative;
  z-index: 1;
}

.page-nosotros-breadcrumb {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(226, 232, 240, 0.55);
  margin-bottom: 1.1rem;
}

.page-nosotros-breadcrumb a {
  color: rgba(253, 224, 71, 0.88);
  text-decoration: none;
}

.page-nosotros-breadcrumb a:hover {
  color: #fef9c3;
}

.page-nosotros-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Open Sans", "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin: 0 0 1.2rem;
}

.page-nosotros-hero__title {
  font-family: "Open Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.07;
  margin: 0 0 0.85rem;
  color: #ffffff;
}

.page-nosotros-hero__lead {
  font-family: "Open Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.82);
  max-width: 500px;
  margin: 0;
  font-weight: 400;
}

.page-nosotros-body {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.65), #f8fafc 22%, transparent);
}

.page-nosotros-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 22px 50px -18px rgba(15, 23, 42, 0.1);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2.25rem);
  margin-top: clamp(-2rem, -3vw, -1.25rem);
  position: relative;
  z-index: 2;
}

.page-nosotros-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.25rem;
  position: relative;
  background: linear-gradient(145deg, #0b0f18 0%, #121a2b 50%, #0f1729 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-nosotros-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% -5%, rgba(212, 175, 55, 0.14), transparent 65%);
}

.page-nosotros-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.85rem 1.1rem 1.65rem;
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(212, 175, 55, 0.1);
}

.page-nosotros-stats .stat-item:last-child {
  border-right: none;
}

.page-nosotros-stats .stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
}

.page-nosotros-stats .stat-number {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.55rem;
  background: linear-gradient(135deg, #fde68a 0%, #f2dc78 30%, #d4af37 65%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-nosotros-stats .stat-label {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.45;
  max-width: 9.5rem;
}

.page-nosotros-stats .stat-note {
  font-size: 0.64rem;
  color: rgba(212, 175, 55, 0.5);
  margin-top: 0.35rem;
  font-style: italic;
  line-height: 1.35;
  max-width: 9rem;
}

.page-nosotros-static article {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 1.35rem 1.45rem 1.4rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-nosotros-static article:hover {
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.page-nosotros-static article h2 {
  font-family: "Open Sans", "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: #0f172a;
}

.page-nosotros-static article p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.68;
}

.page-nosotros-static article p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .page-nosotros-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-nosotros-stats .stat-item:nth-child(2) {
    border-right: none;
  }

  .page-nosotros-stats .stat-item:nth-child(1),
  .page-nosotros-stats .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  }
}

@media (max-width: 400px) {
  .page-nosotros-stats {
    grid-template-columns: 1fr;
  }

  .page-nosotros-stats .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  }

  .page-nosotros-stats .stat-item:last-child {
    border-bottom: none;
  }
}

/* Anular fondo de sección del bundle en páginas dedicadas (el panel blanco lo lleva .container) */
body.page-cat-dedicated #catalogo-servicios {
  background: transparent !important;
  border-top: none !important;
  border-bottom: none !important;
  overflow: visible !important;
}

body.page-cat-dedicated #catalogo-servicios::before {
  display: none !important;
}
