﻿/* ====================================================
   CORREDURÍA 6 GUANAJUATO — Stylesheet
   Fuentes: Cinzel (headings) + Montserrat (body)
==================================================== */

/* ── Variables ─────────────────────────────────── */
:root {
  --gold:         #1cbbc4;   /* cian — acento principal   */
  --gold-light:   #3dd4dc;   /* cian claro                */
  --gold-dark:    #159aa1;   /* cian oscuro               */
  --dark:         #0A192F;   /* azul marino profundo      */
  --dark-2:       #0d2040;
  --dark-3:       #112554;
  --white:        #ffffff;
  --white-70:     rgba(255, 255, 255, 0.70);
  --white-40:     rgba(255, 255, 255, 0.40);
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --dur:          0.38s;
  --f-heading:    'Cinzel', serif;
  --f-body:       'Montserrat', sans-serif;
  --nav-h:        180px;
}

/* ── Reset ──────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--f-body);
  background: #f5f7f6;
  color: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; }
ul  { list-style: none; }

body.is-loading {
  overflow: hidden;
  height: 100vh;
}

/* ==============================
   PRELOADER — Formal Legal Identity
============================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(19, 134, 144, 0.30);
  min-height: 100svh;
  padding:
    max(0.75rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* — Background: frosted glass layers (door effect) — */
.preloader-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.02) 12%,
      rgba(255, 255, 255, 0.08) 24%,
      rgba(255, 255, 255, 0.01) 36%,
      rgba(255, 255, 255, 0.06) 48%,
      rgba(255, 255, 255, 0.01) 60%,
      rgba(255, 255, 255, 0.08) 72%,
      rgba(255, 255, 255, 0.02) 84%,
      rgba(255, 255, 255, 0.10) 100%),
    radial-gradient(ellipse 70% 56% at 50% 50%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 78%),
    linear-gradient(175deg, rgba(16, 128, 139, 0.66) 0%, rgba(11, 93, 103, 0.60) 48%, rgba(19, 146, 157, 0.64) 100%);
}

/* — Certificate double-border frame — */
.preloader-stationery {
  position: absolute;
  inset: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  animation: preloaderFadeIn 1.4s ease 0.1s both;
}

.preloader-stationery::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Corner accent marks */
.preloader-stationery::after {
  content: '';
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)) top left / 22px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)) top left / 1px 22px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)) top right / 22px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)) top right / 1px 22px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)) bottom left / 22px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)) bottom left / 1px 22px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)) bottom right / 22px 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)) bottom right / 1px 22px no-repeat;
  opacity: 0.58;
}

/* — Main centered panel — */
.preloader-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2.4rem;
  max-width: 560px;
  width: 100%;
  max-height: calc(100svh - 5.5rem);
  overflow: auto;
}

@media (min-width: 901px) {
  body.is-loading {
    overflow: hidden !important;
  }

  .preloader {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  .preloader-panel {
    max-height: none;
    overflow: hidden;
  }
}

/* — Eyebrow label — */
.preloader-eyebrow {
  font-family: var(--f-body);
  font-size: clamp(0.56rem, 1.8vw, 0.64rem);
  font-weight: 500;
  letter-spacing: clamp(0.2em, 0.8vw, 0.44em);
  text-transform: uppercase;
  color: rgba(239, 245, 250, 0.86);
  margin-bottom: 2.6rem;
  animation: preloaderFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

/* — Seal / logo area — */
.preloader-seal {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.4rem;
  animation: preloaderFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

/* Static ring — defined, no pulse */
.preloader-seal-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.preloader-seal-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preloader-logo {
  width: 92px;
  height: auto;
  position: relative;
  z-index: 1;
}

/* — Large number — */
.preloader-number {
  font-family: var(--f-heading);
  font-size: clamp(3rem, 7.5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #f4f9ff;
  line-height: 1;
  margin-bottom: 1.4rem;
  animation: preloaderFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}

/* — Decorated rule — */
.preloader-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 54%;
  max-width: 260px;
  margin-bottom: 1.3rem;
  animation: preloaderFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.58s both;
}

.preloader-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

.preloader-rule b {
  display: block;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.8;
}

/* — Location — */
.preloader-location {
  font-family: var(--f-heading);
  font-size: clamp(0.82rem, 2vw, 0.96rem);
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #eef4f8;
  margin-bottom: 1.2rem;
  animation: preloaderFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.66s both;
}

/* — Services tag line — */
.preloader-tag {
  font-family: var(--f-body);
  font-size: clamp(0.52rem, 1.7vw, 0.58rem);
  font-weight: 400;
  letter-spacing: clamp(0.12em, 0.5vw, 0.22em);
  text-transform: uppercase;
  color: rgba(231, 239, 246, 0.62);
  animation: preloaderFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.74s both;
}

/* — Progress: full-width, pinned to bottom of screen — */
.preloader-progress {
  position: absolute;
  bottom: env(safe-area-inset-bottom);
  left: 0;
  right: 0;
  z-index: 3;
  animation: preloaderFadeIn 1s ease 0.85s both;
}

@media (max-height: 760px) {
  .preloader-stationery { inset: 1.15rem; }
  .preloader-panel { max-height: calc(100svh - 4.6rem); }
  .preloader-eyebrow { margin-bottom: 1.6rem; }
  .preloader-seal { width: 96px; height: 96px; margin-bottom: 1.4rem; }
  .preloader-logo { width: 74px; }
  .preloader-number { margin-bottom: 0.95rem; }
  .preloader-rule { margin-bottom: 0.9rem; }
  .preloader-location { margin-bottom: 0.9rem; letter-spacing: 0.24em; }
}

@media (max-height: 640px) {
  .preloader-stationery { inset: 0.8rem; }
  .preloader-panel {
    max-height: calc(100svh - 3.8rem);
    padding-inline: 1.1rem;
  }
  .preloader-eyebrow { margin-bottom: 1rem; }
  .preloader-seal { width: 78px; height: 78px; margin-bottom: 0.85rem; }
  .preloader-logo { width: 62px; }
  .preloader-number { font-size: clamp(1.85rem, 7.2vw, 2.5rem); margin-bottom: 0.65rem; }
  .preloader-rule { width: 62%; margin-bottom: 0.62rem; }
  .preloader-location { font-size: 0.72rem; margin-bottom: 0.6rem; letter-spacing: 0.2em; }
  .preloader-tag { font-size: 0.5rem; letter-spacing: 0.1em; }
}

.preloader-bar {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.62));
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(28, 187, 196, 0.55);
}

/* ====================================================
   HEADER
==================================================== */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 900;
  padding-inline: 2rem;
  /* starts transparent over the hero */
  transition:
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* Glass effect after scrolling */
.header.scrolled {
  background: rgba(5, 11, 22, 0.96);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(28, 187, 196, 0.22),
              0 4px 32px rgba(0, 0, 0, 0.65);
}

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin-inline: auto;
  height: var(--nav-h);
  gap: 1.5rem;
}

/* ── Logo ───────────────────────────────────────── */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo {
  height: 140px;
  width: auto;
  transition: transform var(--dur) var(--ease),
              filter var(--dur) var(--ease);
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(28, 187, 196, 0.55));
}

/* ── Nav menu ───────────────────────────────────── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-link {
  font-family: var(--f-heading);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-70);
  padding: 0.72rem 1.2rem;
  position: relative;
  transition: color var(--dur) var(--ease);
}

/* Animated underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--gold);
  transition:
    left  var(--dur) var(--ease),
    right var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 1rem;
  right: 1rem;
}

/* CTA button style */
.nav-cta {
  margin-left: 0.75rem;
  border: 1px solid rgba(28, 187, 196, 0.60);
  color: var(--gold) !important;
  padding: 0.72rem 1.95rem;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark) !important;
  box-shadow: 0 0 20px rgba(28, 187, 196, 0.40);
}

.nav-cta.active,
.nav-cta[aria-current='page'] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark) !important;
  box-shadow: 0 0 20px rgba(28, 187, 196, 0.40);
}

/* Hide underline on cta */
.nav-cta::after { display: none; }

/* ── Hamburger button ───────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(28, 187, 196, 0.08);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  border-radius: 1px;
}

/* Animated X when open */
.nav-toggle.open span:nth-child(1) { 
  transform: translateY(8px) rotate(45deg); 
}
.nav-toggle.open span:nth-child(2) { 
  opacity: 0; 
  transform: scaleX(0); 
}
.nav-toggle.open span:nth-child(3) { 
  transform: translateY(-8px) rotate(-45deg); 
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 880;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ====================================================
   HERO SECTION
==================================================== */
.hero {
  position: relative;
  height: auto;
  min-height: max(620px, 100svh);
  background-image: url('../img/fondo/foto horizontal.jpg');
  background-position: 68% center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #020609;
  display: flex;
  align-items: center;
  overflow: hidden;
  will-change: background-position;
}

/* Contact-page overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(5, 11, 20, 0.93) 0%,
    rgba(5, 11, 20, 0.72) 48%,
    rgba(5, 11, 20, 0.80) 100%
  );
  transform: translate3d(0, calc(var(--hero-shift, 0px) * -0.22), 0);
  will-change: transform;
}

.hero::before {
  content: none;
}

/* Subtle decorative vertical line */
.hero-line {
  display: none;
}

/* ── Hero content ───────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 56vw);
  max-width: min(720px, 56vw);
  margin-inline: clamp(0.75rem, 4vw, 4.6rem) auto;
  padding: calc(var(--nav-h) + clamp(1.2rem, 2.4vw, 2.5rem)) clamp(1rem, 2.2vw, 2.2rem) clamp(2rem, 6vh, 5rem);
  transform: translate3d(calc(var(--hero-mx, 0) * 8px), calc(var(--hero-my, 0) * 6px), 0);
  animation: heroFadeUp 1.1s var(--ease) both;
  will-change: transform;
}

.hero-content > * {
  max-width: min(680px, 100%);
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease) 0.2s both;
}

.hero-title {
  font-family: var(--f-heading);
  font-size: clamp(2.2rem, 4.9vw, 5rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease) 0.4s both;
}

/* Gold accent on second line */
.hero-title br + * {
  color: var(--white);
}

.hero-divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease) 0.55s both;
}

.hero-description {
  font-size: 1rem;
  font-weight: 300;
  color: var(--white-70);
  max-width: min(56ch, 100%);
  line-height: 1.85;
  letter-spacing: 0.025em;
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease) 0.65s both;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  max-width: min(640px, 100%);
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease) 0.74s both;
}

.hero-metric {
  border: 1px solid rgba(28, 187, 196, 0.26);
  background: rgba(3, 7, 14, 0.55);
  padding: 0.85rem 0.95rem;
  position: relative;
  overflow: hidden;
}

.hero-metric::before {
  content: '';
  position: absolute;
  inset: -90% auto -90% -140%;
  width: 58%;
  background: linear-gradient(90deg, transparent, rgba(28, 187, 196, 0.20), transparent);
  transform: rotate(18deg);
  animation: metricSweep 7.2s ease-in-out infinite;
}

.hero-metric-value {
  display: block;
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.hero-metric-label {
  display: block;
  color: var(--white-70);
  font-size: 0.74rem;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Buttons ────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: clamp(0.75rem, 1.2vw, 1rem);
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease) 0.8s both;
}

.hero-actions .btn {
  min-width: min(220px, 100%);
  text-align: center;
}

.btn {
  font-family: var(--f-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 1px;
  cursor: pointer;
  transition:
    background     var(--dur) var(--ease),
    color          var(--dur) var(--ease),
    border-color   var(--dur) var(--ease),
    transform      var(--dur) var(--ease),
    box-shadow     var(--dur) var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border: 1px solid var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(28, 187, 196, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.40);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

/* ── Scroll hint ────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease) 1.2s both;
}

.scroll-label {
  font-family: var(--f-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-40);
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dark), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ====================================================
   ANIMATIONS
==================================================== */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1);   opacity: 0.6; }
  50%       { transform: scaleY(1.3); opacity: 1;   }
}

@keyframes heroAuraDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 1%, 0) scale(1.06); }
}

@keyframes metricSweep {
  0%, 18%   { transform: translateX(0) rotate(18deg); opacity: 0; }
  33%       { opacity: 1; }
  58%, 100% { transform: translateX(430%) rotate(18deg); opacity: 0; }
}

@keyframes preloaderFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes preloaderFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ====================================================
   HOME BODY + FOOTER
==================================================== */
.section {
  position: relative;
  padding: 6rem 0;
}

main {
  position: relative;
  z-index: 4;
  margin-top: 0;
}

.section-container {
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.section-about {
  background: #f5f7f6;
  border-radius: 0;
  padding-top: 8rem;
  box-shadow: none;
  border-top: none;
}

.section-services {
  background: 
    linear-gradient(180deg, rgba(8, 10, 12, 0.88) 0%, rgba(4, 6, 8, 0.88) 100%),
    url('../img/texturas/vinyl-record-spinning.jpg') center / cover no-repeat;
}

.section-process {
  background: #f5f7f6;
  border-top: none;
}

/* ── Process section: light override ─────────────── */
.section-process .section-eyebrow {
  color: #159aa1;
  font-size: 0.72rem;
}

.section-process .section-title {
  color: #060d16;
  font-size: clamp(2.75rem, 5.8vw, 3.85rem);
  line-height: 1.14;
  max-width: 980px;
}

.section-process .process-item {
  border-top-color: rgba(28, 187, 196, 0.30);
}

.section-process .process-item::after {
  background: linear-gradient(to bottom, rgba(28, 187, 196, 0.22), transparent);
}

.section-process .process-step {
  color: #1cbbc4;
}

.section-process .process-title {
  color: #060d16;
}

.section-process .process-text {
  color: rgba(10, 20, 35, 0.65);
}

.section-attention {
  background:
    linear-gradient(135deg, rgba(7, 18, 14, 0.88) 0%, rgba(10, 26, 20, 0.88) 50%, rgba(9, 21, 32, 0.90) 100%),
    url('../img/texturas/birch-trees-in-winter.jpg') center/cover no-repeat;
  padding-top: 4.6rem;
  padding-bottom: 4.6rem;
}

.section-cta {
  background: #dde0e3;
  padding-top: 5.2rem;
  padding-bottom: 5.2rem;
  border-top: none;
}

.section-about,
.section-services,
.section-process,
.section-attention,
.section-cta {
  border-top: 1px solid rgba(28, 187, 196, 0.08);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--f-heading);
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.1rem;
  max-width: 900px;
}

.section-divider {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 1.4rem;
}

.section-text {
  color: var(--white-70);
  font-size: 1.08rem;
  line-height: 1.85;
  max-width: 780px;
  letter-spacing: 0.02em;
}

.cards-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.about-panel {
  border: 1px solid rgba(28, 187, 196, 0.28);
  background: linear-gradient(145deg, rgba(5, 12, 22, 0.92) 0%, rgba(8, 18, 30, 0.88) 100%);
  padding: 2.4rem 2rem;
}

.about-panel h3 {
  font-family: var(--f-heading);
  font-size: 1.46rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.about-panel p {
  color: var(--white-70);
  font-size: 1.14rem;
  line-height: 1.75;
  margin-bottom: 1.35rem;
}

.about-panel ul {
  list-style: none;
  margin-bottom: 1.4rem;
}

.about-panel li {
  position: relative;
  color: var(--white-70);
  font-size: 1.16rem;
  line-height: 1.68;
  margin-bottom: 0.85rem;
  padding-left: 1.1rem;
}

.about-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.36rem;
  height: 0.36rem;
  background: var(--gold);
}

.about-panel .btn {
  padding: 0.75rem 1.2rem;
}

/* ── About section: light override ────────────────── */
.section-about .section-eyebrow {
  color: #159aa1;
  font-size: 0.72rem;
}

.section-about .section-title {
  color: #060d16;
  font-size: clamp(2.7rem, 5.8vw, 3.85rem);
  line-height: 1.16;
}

.section-about .section-divider {
  background: linear-gradient(90deg, #1cbbc4, transparent);
}

.section-about .section-text {
  color: rgba(10, 20, 35, 0.68);
  font-size: 1.12rem;
  line-height: 1.8;
}

/* Panel card stays dark — creates rich contrast on white */
.section-about .about-panel {
  background: #e8eaed;
  border-color: rgba(28, 187, 196, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.section-about .about-panel h3 {
  color: #060d16;
}

.section-about .about-panel p {
  color: rgba(10, 20, 35, 0.68);
}

.section-about .about-panel li {
  color: rgba(10, 20, 35, 0.68);
}

.section-about .about-panel li::before {
  background: #1cbbc4;
}

.section-about .btn-ghost {
  color: #060d16;
  border-color: rgba(6, 13, 22, 0.32);
}

.section-about .btn-ghost:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #060d16;
}

.info-card {
  border: 1px solid rgba(28, 187, 196, 0.22);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.025) 0%, rgba(3, 8, 16, 0.55) 100%);
  padding: 1.6rem 1.4rem;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(28, 187, 196, 0.48);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.card-title {
  font-family: var(--f-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
  color: var(--white);
  margin-bottom: 0.8rem;
}

.card-tag {
  display: inline-block;
  font-family: var(--f-heading);
  font-size: 0.76rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  border: 1px solid rgba(28, 187, 196, 0.32);
  background: rgba(3, 7, 14, 0.68);
  margin-bottom: 0.9rem;
}

.card-text {
  color: var(--white-70);
  font-size: 1rem;
  line-height: 1.7;
}

.process-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.process-item {
  position: relative;
  padding: 1.3rem 1rem 1.3rem 0.2rem;
  border-top: 1px solid rgba(28, 187, 196, 0.35);
}

.process-item::after {
  content: '';
  position: absolute;
  top: -1px;
  right: 0;
  width: 1px;
  height: calc(100% - 1rem);
  background: linear-gradient(to bottom, rgba(28, 187, 196, 0.22), transparent);
}

.process-item:last-child::after {
  display: none;
}

.process-step {
  display: block;
  font-family: var(--f-heading);
  font-size: 1rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.process-title {
  font-family: var(--f-heading);
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.process-text {
  color: var(--white-70);
  font-size: 1.12rem;
  line-height: 1.72;
}

.attention-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: center;
}

.attention-head .section-title {
  font-size: clamp(2.7rem, 5.9vw, 4rem);
  line-height: 1.16;
  margin-bottom: 0.9rem;
}

.attention-head .section-text {
  font-size: 1.08rem;
  line-height: 1.74;
}

.attention-accent {
  width: 52px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.15rem;
}

.attention-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.attention-item {
  border: 1px solid rgba(28, 187, 196, 0.20);
  background: rgba(4, 10, 10, 0.45);
  padding: 1.1rem 1rem;
}

[data-tilt] {
  transform-style: preserve-3d;
  transform: perspective(920px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(0);
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease), border-color 0.34s var(--ease);
  position: relative;
  overflow: hidden;
}

[data-tilt]::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(28, 187, 196, 0.22), transparent 42%);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
  pointer-events: none;
}

[data-tilt].is-tilting::before {
  opacity: 1;
}

.attention-item h3 {
  font-family: var(--f-heading);
  font-size: 1.04rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.45rem;
}

.attention-item p {
  font-size: 0.98rem;
  color: var(--white-70);
  line-height: 1.65;
}

.cta-box {
  border: 1px solid rgba(28, 187, 196, 0.28);
  background: #f5f7f6;
  padding: 2.4rem 2.1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.6rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 16%, rgba(28, 187, 196, 0.08), transparent 44%);
  pointer-events: none;
}

.cta-box .section-title {
  color: #060d16;
  font-size: clamp(2.3rem, 4.8vw, 3.35rem);
  line-height: 1.16;
  margin-bottom: 0.7rem;
  max-width: 720px;
}

.cta-box .section-text {
  color: rgba(10, 20, 35, 0.65);
  font-size: 1.12rem;
  line-height: 1.72;
}

.cta-side {
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(28, 187, 196, 0.35);
  padding-left: 1.4rem;
}

.cta-points {
  list-style: none;
  margin-bottom: 2rem;
}

.cta-points li {
  position: relative;
  color: rgba(10, 20, 35, 0.68);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.58rem;
  padding-left: 1rem;
}

.cta-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--gold);
}

.cta-side .btn {
  width: fit-content;
  font-size: 0.78rem;
  padding: 0.95rem 2.3rem;
  margin-top: 0.25rem;
}

.site-footer {
  border-top: 1px solid rgba(28, 187, 196, 0.22);
  background: linear-gradient(180deg, #050d16 0%, #020609 100%);
  padding: 4.5rem 0 2.4rem;
}

.footer-container {
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 2rem 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.footer-logo {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.footer-name {
  font-family: var(--f-heading);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.footer-place {
  font-family: var(--f-heading);
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.footer-subtitle {
  display: block;
  color: var(--white-40);
  font-size: 1.02rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  max-width: 260px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-label {
  font-family: var(--f-heading);
  font-size: 0.88rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.footer-nav a {
  font-family: var(--f-heading);
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-70);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.footer-nav a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.footer-action-text {
  font-family: var(--f-heading);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--white-70);
  line-height: 1.55;
}

.footer-cta {
  padding-inline: 1.6rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.4rem;
  margin-top: 1rem;
}

.footer-copy {
  color: var(--white-40);
  font-size: 0.96rem;
  letter-spacing: 0.06em;
}

.footer-copy .footer-atinet,
.footer-atinet {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.footer-atinet:hover,
.footer-atinet:focus {
  text-decoration: underline;
}

.footer-legal {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.20);
}

/* ====================================================
   SCROLL REVEAL
==================================================== */
[data-reveal] {
  --reveal-x: 0px;
  --reveal-y: 48px;
  --reveal-scale: 0.97;
  --reveal-rot: 0deg;
  --reveal-delay: 0ms;
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale)) rotateX(var(--reveal-rot));
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0ms;
  will-change: opacity, transform, filter;
}

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
  transition-delay: var(--reveal-delay);
}

/* Light sections: no blur — prevents dark-blue smear on white backgrounds */
.section-about [data-reveal],
.section-process [data-reveal],
.section-cta [data-reveal] {
  filter: none;
}
.section-about [data-reveal].is-visible,
.section-process [data-reveal].is-visible,
.section-cta [data-reveal].is-visible {
  filter: none;
}

[data-reveal='left'] {
  --reveal-x: -58px;
  --reveal-y: 0px;
  --reveal-scale: 0.98;
}

[data-reveal='right'] {
  --reveal-x: 58px;
  --reveal-y: 0px;
  --reveal-scale: 0.98;
}

[data-reveal='up'] {
  --reveal-y: 48px;
}

[data-reveal='zoom'] {
  --reveal-y: 28px;
  --reveal-scale: 0.92;
  --reveal-rot: 6deg;
}

[data-reveal='fade'] {
  --reveal-y: 0px;
  --reveal-scale: 1;
  --reveal-rot: 0deg;
  filter: blur(4px);
}

/* ====================================================
   BACK TO TOP
==================================================== */
.back-to-top {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--gold-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease),
              visibility 0.35s var(--ease),
              transform 0.35s var(--ease),
              background 0.25s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.30);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ====================================================
   RESPONSIVE
==================================================== */
/* ====================================================
   PÁGINAS INTERIORES (panel/)
==================================================== */
.panel-page {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.panel-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(5, 11, 20, 0.90) 0%,
    rgba(5, 11, 20, 0.68) 45%,
    rgba(5, 11, 20, 0.86) 100%
  );
}

.panel-page--nosotros {
  background-image: url('../img/fondo/vista-angulo-dos-jovenes-empresarios-dandose-mano-su-reunion-ciudad_249974-6462.avif');
}

.panel-page--servicios {
  background-image: url('../img/fondo/hombre-apuesto-que-firma-contrato-hipoteca-oficina-agente-bienes-raices-concepto-entrar-poder-legal-asumir-responsabilidades-bienes-raices_269648-367.jpg');
}

.panel-page--servicios .hero-eyebrow {
  font-size: clamp(0.74rem, 0.95vw, 0.92rem);
  letter-spacing: 0.34em;
}

.panel-page--servicios .panel-title {
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 1.08;
}

.panel-page--servicios .panel-description {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  max-width: 760px;
}

.panel-page--servicios .hero-metric-value {
  font-size: clamp(1.02rem, 1.22vw, 1.22rem);
}

.panel-page--servicios .hero-metric-label {
  font-size: clamp(0.8rem, 0.88vw, 0.92rem);
}

.panel-page--servicios .hero-metrics {
  gap: 1.35rem;
  margin-top: 0.85rem;
}

.panel-page--equipo {
  background-image: url('../img/fondo/flecha-roja-que-apunta-arriba-contra-collage-empresarios-reuniones_1134-76157.avif');
}

.preguntas-page .panel-page--equipo .hero-metrics {
  gap: 1.35rem;
  max-width: min(760px, 100%);
}

.preguntas-page .panel-page--equipo {
  background-image: url('../img/fondo/hombre-escribiendo-cuaderno-pluma_23-2151998152.avif');
}

.preguntas-page .panel-page--equipo .panel-description {
  margin-bottom: 1.2rem;
}

.preguntas-page .panel-page--equipo .hero-metric {
  padding: 1rem 1.2rem;
}

.panel-page--contacto {
  background-image: url('../img/fondo/CELAYA.jpeg');
}

.services-page .panel-page--servicios::before {
  background: linear-gradient(
    105deg,
    rgba(4, 10, 19, 0.92) 0%,
    rgba(7, 18, 31, 0.78) 42%,
    rgba(12, 50, 57, 0.58) 100%
  );
}

.services-page .section-services {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.03), transparent 30%),
    linear-gradient(180deg, rgba(8, 10, 12, 0.94) 0%, rgba(4, 6, 8, 0.94) 52%, rgba(2, 4, 6, 0.94) 100%),
    url('../img/texturas/black-wood-angle-texture.jpg') center/cover no-repeat;
}

.services-page .section-services .section-eyebrow,
.services-page .section-services .section-title {
  color: #e7f0f7;
}

.services-page .section-services .section-text,
.services-page .section-services .card-text {
  color: rgba(226, 235, 243, 0.82);
}

.services-page .section-services .info-card {
  border-color: rgba(61, 212, 220, 0.34);
  background: linear-gradient(165deg, rgba(6, 18, 31, 0.64) 0%, rgba(2, 10, 20, 0.74) 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.services-page .section-services .info-card .card-title {
  color: #f3f8fc;
}

.services-page .section-services .info-card .card-text {
  color: rgba(222, 233, 241, 0.84);
}

.services-page .section-services .info-card:hover {
  border-color: rgba(61, 212, 220, 0.56);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
}

.services-page .section-services .card-tag {
  background: rgba(2, 11, 22, 0.62);
  color: #3dd4dc;
  border-color: rgba(61, 212, 220, 0.34);
}

.services-page .section-process {
  background:
    radial-gradient(circle at 14% 18%, rgba(61, 212, 220, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 252, 0.98) 100%);
  border-top: 1px solid rgba(61, 212, 220, 0.14);
  box-shadow: inset 0 10px 24px rgba(7, 24, 33, 0.04);
}

.services-page .section-process .section-eyebrow,
.services-page .section-process .process-step {
  color: #3dd4dc;
}

.services-page .section-process .section-title,
.services-page .section-process .process-title {
  color: #0f2433;
}

.services-page .section-process .process-text {
  color: rgba(15, 36, 51, 0.78);
}

.services-page .section-process .process-item {
  background: none;
  border: none;
  border-top: 1px solid rgba(28, 187, 196, 0.35);
  padding: 1.3rem 1rem 1.3rem 0.2rem;
  box-shadow: none;
}

.services-page .section-process .process-item::after {
  background: linear-gradient(to bottom, rgba(28, 187, 196, 0.22), transparent);
}

.services-page .section-process .process-item:hover {
  transform: none;
}

.services-page .section-attention {
  background:
  linear-gradient(180deg, rgba(8, 10, 12, 0.92) 0%, rgba(4, 6, 8, 0.94) 100%),
    url('../img/texturas/texture-of-old-tree.jpg') center/cover no-repeat;
}

.services-page .section-attention .section-eyebrow {
  color: #3dd4dc;
}

.services-page .section-attention .section-title {
  color: #e7f0f7;
}

.services-page .section-attention .attention-item h3 {
  color: #1CBBC4;
}

.services-page .section-attention .section-text,
.services-page .section-attention .attention-item p {
  color: rgba(226, 235, 243, 0.86);
}

.services-page .section-attention .attention-item {
  background: linear-gradient(165deg, rgba(6, 18, 31, 0.64) 0%, rgba(2, 10, 20, 0.74) 100%);
  border: 1px solid rgba(61, 212, 220, 0.34);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.services-page .section-attention .attention-item:hover {
  border-color: rgba(61, 212, 220, 0.56);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
}

.services-page .section-cta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 252, 0.99) 100%);
}

.services-page .cta-box {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 251, 0.99) 100%);
  border-color: rgba(61, 212, 220, 0.24);
  box-shadow: 0 14px 30px rgba(7, 24, 33, 0.10);
}

.services-page .cta-box::before {
  background: radial-gradient(circle at 12% 16%, rgba(61, 212, 220, 0.08), transparent 44%);
}

.services-page .cta-box .section-title {
  color: #0f2433;
}

.services-page .cta-box .section-text,
.services-page .cta-points li {
  color: rgba(15, 36, 51, 0.78);
}

.services-page .cta-side {
  border-left-color: rgba(61, 212, 220, 0.28);
}

/* =====================================================
   NOSOTROS PAGE — diferenciación visual de secciones
===================================================== */

/* section-about: blanco limpio (igual que el global) */
.nosotros-page .section-about {
  background: #ffffff;
}

/* section-process: gris azulado claro para distinguirse del blanco anterior */
.nosotros-page .section-process {
  background: linear-gradient(180deg, #eef3f7 0%, #e4ecf2 100%);
  border-top: 1px solid rgba(28, 187, 196, 0.18);
  border-bottom: 1px solid rgba(28, 187, 196, 0.18);
}

.nosotros-page .section-process .section-eyebrow,
.nosotros-page .section-process .process-step {
  color: #1cbbc4;
}

.nosotros-page .section-process .section-title,
.nosotros-page .section-process .process-title {
  color: #0f2433;
}

.nosotros-page .section-process .process-text {
  color: rgba(15, 36, 51, 0.72);
}

.nosotros-page .section-process .process-item {
  border-top-color: rgba(28, 187, 196, 0.32);
}

.nosotros-page .section-process .process-item::after {
  background: linear-gradient(to bottom, rgba(28, 187, 196, 0.20), transparent);
}

/* section-attention: textura corteza con overlay negro */
.nosotros-page .section-attention {
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.88) 0%, rgba(4, 6, 8, 0.90) 100%),
    url('../img/texturas/close-up-of-tree-bark.jpg') center/cover no-repeat;
}

/* =====================================================
   PREGUNTAS PAGE
===================================================== */

/* ── OVERVIEW (2 col) ── */
.section-faq-overview {
  background: #ffffff;
}

.faq-overview-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: start;
}

.faq-overview-head {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.faq-overview-head .section-title { color: #0a192f; }
.faq-overview-head .section-text  { color: rgba(10,25,47,0.68); margin-top: 1rem; }

.btn-outline-cyan {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border: 1px solid rgba(28,187,196,0.60);
  color: #1cbbc4;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-outline-cyan:hover {
  background: rgba(28,187,196,0.10);
  color: #3dd4dc;
}

.faq-topic-list {
  display: flex;
  flex-direction: column;
}

.faq-topic-item {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(28,187,196,0.14);
}
.faq-topic-item:first-child { border-top: 1px solid rgba(28,187,196,0.14); }

.faq-topic-num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #1cbbc4;
  flex-shrink: 0;
  padding-top: 0.25rem;
  min-width: 1.8rem;
}

.faq-topic-title {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 600;
  color: #0a192f;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.faq-topic-desc {
  font-size: 0.88rem;
  color: rgba(10,25,47,0.60);
  line-height: 1.65;
  margin: 0;
}

/* ── ACCORDION ── */
.section-faq-accordion {
  background:
    linear-gradient(180deg, rgba(4,8,14,0.76) 0%, rgba(2,5,10,0.80) 100%),
    url('../img/texturas/speckled-pavement.jpg') center/cover no-repeat;
}

.faq-accordion-head {
  margin-bottom: 3rem;
  max-width: 680px;
}
.faq-accordion-head .section-eyebrow { color: #3dd4dc; }
.faq-accordion-head .section-title   { color: #e8f3f9; }

.faq-accordion {
  display: flex;
  flex-direction: column;
  max-width: 860px;
}

.faq-item {
  border-bottom: 1px solid rgba(28,187,196,0.18);
}
.faq-item:first-of-type { border-top: 1px solid rgba(28,187,196,0.18); }

.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.025em;
  color: #d6eaf5;
  user-select: none;
  transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }
.faq-item:hover .faq-question { color: #ffffff; }

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(28,187,196,0.40);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1cbbc4;
  font-size: 1.25rem;
  line-height: 1;
  font-family: sans-serif;
  font-weight: 300;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s;
}
.faq-item[open] .faq-icon {
  background: rgba(28,187,196,0.12);
  border-color: rgba(28,187,196,0.70);
  transform: rotate(45deg);
  color: #3dd4dc;
}

.faq-body {
  padding: 0 3rem 1.5rem 0;
  color: rgba(200,225,240,0.75);
  font-size: 0.95rem;
  line-height: 1.80;
}
.faq-body p { margin: 0; }

/* ── TIMELINE HORIZONTAL ── */
.section-faq-steps {
  background: linear-gradient(180deg, #eef3f7 0%, #e6eef5 100%);
  border-top: 1px solid rgba(28,187,196,0.14);
  border-bottom: 1px solid rgba(28,187,196,0.14);
}

.section-faq-steps .section-eyebrow { color: #1cbbc4; }
.section-faq-steps .section-title   { color: #0f2433; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  margin-top: 3.5rem;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 1.45rem;
  left: calc(12.5% + 0.5rem);
  right: calc(12.5% + 0.5rem);
  height: 1px;
  background: linear-gradient(to right, rgba(28,187,196,0.35), rgba(28,187,196,0.12));
}

.step-item {
  text-align: center;
  padding: 0 1.2rem;
}

.step-node {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(28,187,196,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 5px #eef3f7;
}

.step-node span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: #1cbbc4;
  letter-spacing: 0.06em;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f2433;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.step-text {
  font-size: 0.875rem;
  color: rgba(15,36,51,0.60);
  line-height: 1.68;
}

/* ── CTA CENTRADO ── */
.section-faq-cta {
  background:
    radial-gradient(circle at 50% 60%, rgba(28,187,196,0.06), transparent 55%),
    #ffffff;
}

.faq-cta-block {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.faq-cta-block .section-title { color: #0a192f; }
.faq-cta-block .section-text  { color: rgba(10,25,47,0.68); }

@media (max-width: 900px) {
  .faq-overview-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .faq-overview-head { position: static; }
}

@media (max-width: 760px) {
  .steps-row {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
  .steps-row::before { display: none; }
}

@media (max-width: 480px) {
  .steps-row { grid-template-columns: 1fr; }
}

/* =====================================================
   CONTACT PAGE — nuevo diseño centrado editorial
===================================================== */
.contact-page {
  min-height: 100vh;
  background-image: url('../img/fondo/apreton-manos-enfoque-selectivo-suave-abogada-reunion-cliente-masculino-oficina_423170-2273.avif');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-color: #020609;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  position: relative;
}

/* Overlay oscuro sobre imagen de fondo */
.contact-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 9, 0.82) 0%,
    rgba(2, 6, 9, 0.70) 50%,
    rgba(2, 6, 9, 0.88) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.contact-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(28,187,196,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.contact-hero-band {
  text-align: center;
  padding: 4.5rem 2rem 2.5rem;
  max-width: 720px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.contact-main-title {
  font-family: var(--f-heading);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.contact-divider {
  margin-inline: auto;
}

.contact-lead {
  color: rgba(255,255,255,0.68);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  max-width: 520px;
  margin-inline: auto;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem 5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.contact-card {
  padding: 2.8rem 2rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}
.contact-card:last-child {
  border-right: none;
}

/* Línea de acento superior */
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
}

.contact-card__icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex-shrink: 0;
  margin-bottom: 0.2rem;
}
.contact-card__icon svg {
  width: 100%;
  height: 100%;
}

.contact-card__label {
  font-family: var(--f-heading);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.contact-card__value {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  margin: 0;
  letter-spacing: 0.01em;
}

/* =====================================================
   CONTACTO PAGE — nuevo diseño (mapa + datos + form)
===================================================== */

/* ── Hero ── */
.contacto-page .panel-page--contacto::before {
  background: linear-gradient(
    115deg,
    rgba(4, 10, 19, 0.88) 0%,
    rgba(5, 13, 24, 0.72) 50%,
    rgba(4, 10, 19, 0.88) 100%
  );
}

/* ── Mapa full-bleed ── */
.section-contacto-map {
  height: 520px;
  width: 100%;
  overflow: hidden;
  display: block;
}

.section-contacto-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: grayscale(18%) contrast(1.04);
}

/* ── Datos de contacto ── */
.section-contacto-datos {
  background: #ffffff;
  border-bottom: 1px solid rgba(28,187,196,0.12);
}

.contacto-datos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.contacto-dato {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2.6rem 2rem 2.6rem;
  border-right: 1px solid rgba(28,187,196,0.12);
}
.contacto-dato:last-child { border-right: none; }
.contacto-dato:first-child { padding-left: 0; }

.contacto-dato__icon {
  display: block;
  width: 22px;
  height: 22px;
  color: #1cbbc4;
  margin-bottom: 0.4rem;
}
.contacto-dato__icon svg {
  width: 100%;
  height: 100%;
}

.contacto-dato__label {
  font-family: var(--f-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1cbbc4;
}

.contacto-dato__value {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(10,25,47,0.75);
  line-height: 1.75;
}

.contacto-dato__link {
  text-decoration: none;
  color: rgba(10,25,47,0.75);
  transition: color 0.2s;
}
.contacto-dato__link:hover {
  color: #1cbbc4;
}

/* ── Formulario ── */
.section-contacto-form {
  background:
    linear-gradient(180deg, rgba(20,13,9,0.84) 0%, rgba(30,18,11,0.88) 52%, rgba(16,10,7,0.92) 100%),
    url('../img/texturas/light-woodgrain.jpg') center/cover no-repeat;
}

.contacto-form-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contacto-form-head {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.contacto-form-head .section-eyebrow { color: #3dd4dc; }
.contacto-form-head .section-title   { color: #f4f8fb; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.contacto-form-head .section-text    { color: rgba(240,247,252,0.88); margin-top: 0.8rem; }

.contacto-form-notas {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contacto-form-notas li {
  font-size: 0.87rem;
  color: rgba(231,241,248,0.84);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}
.contacto-form-notas li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1cbbc4;
}

/* Form itself */
.c-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.c-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.c-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.c-form-group--full { grid-column: 1 / -1; }

.c-form-label {
  font-family: var(--f-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236,245,250,0.92);
}

.c-form-optional {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(208,226,238,0.68);
}

.c-form-input {
  background: rgba(8,12,16,0.46);
  border: 1px solid rgba(61,212,220,0.52);
  border-radius: 2px;
  padding: 0.9rem 1rem;
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: #f2f8fc;
  transition: border-color 0.25s, background 0.25s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.c-form-input::placeholder { color: rgba(218,234,244,0.62); }
.c-form-input:focus {
  border-color: rgba(61,212,220,0.86);
  background: rgba(9,22,28,0.72);
}

.c-form-textarea {
  resize: vertical;
  min-height: 140px;
}

.c-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.c-form-privacidad {
  font-size: 0.8rem;
  color: rgba(220,236,246,0.78);
  line-height: 1.6;
  max-width: 340px;
  margin: 0;
}

.c-form-btn { white-space: nowrap; }

/* Responsive */
@media (max-width: 900px) {
  .contacto-form-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contacto-form-head { position: static; }
  .contacto-datos-grid { grid-template-columns: 1fr 1fr; }
  .contacto-dato:nth-child(2) { border-right: none; }
  .contacto-dato:nth-child(n+3) { border-top: 1px solid rgba(28,187,196,0.12); }
  .section-contacto-map { height: 380px; }
}

@media (max-width: 600px) {
  .c-form-row { grid-template-columns: 1fr; }
  .contacto-datos-grid { grid-template-columns: 1fr; }
  .contacto-dato { border-right: none; border-top: 1px solid rgba(28,187,196,0.12); }
  .contacto-dato:first-child { border-top: none; padding-left: 0; }
  .c-form-footer { flex-direction: column; align-items: flex-start; }
  .section-contacto-map { height: 300px; }
}

.panel-content {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  width: 100%;
  margin-inline: auto;
  padding: 5rem 2rem;
  animation: heroFadeUp 0.8s var(--ease) both;
}

.panel-title {
  font-family: var(--f-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 1.4rem;
}

.panel-description {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--white-70);
  max-width: 600px;
  line-height: 1.85;
  letter-spacing: 0.025em;
}

@media (max-width: 900px) {
  .panel-page--servicios .panel-title {
    font-size: clamp(2.35rem, 8.6vw, 4.2rem);
  }

  .panel-page--servicios .panel-description {
    font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  }
}

@media (max-width: 600px) {
  .panel-page--servicios .panel-title {
    font-size: clamp(2rem, 10.2vw, 3rem);
  }

  .panel-page--servicios .hero-metric-label {
    font-size: 0.82rem;
  }
}

/* ====================================================
   RESPONSIVE — 900 px  (tablet / landscape phone)
==================================================== */
@media (max-width: 900px) {
  :root { --nav-h: 90px; }

  .header {
    padding-inline: max(0.85rem, env(safe-area-inset-left)) max(0.85rem, env(safe-area-inset-right));
    background: rgba(5, 11, 22, 0.95);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 1px 0 rgba(28, 187, 196, 0.2),
                0 4px 26px rgba(0, 0, 0, 0.58);
  }

  .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    height: var(--nav-h);
    align-items: center;
  }

  .nav-logo {
    min-width: 0;
    max-width: 210px;
    overflow: hidden;
  }

  .logo {
    height: 70px;
    width: auto;
    max-width: 100%;
  }

  /* --- Preloader --- */
  .preloader-stationery { inset: 1.4rem; }
  .preloader-panel  { padding: 0 1.8rem; }
  .preloader-eyebrow { margin-bottom: 2rem; }
  .preloader-seal   { width: 98px; height: 98px; margin-bottom: 1.8rem; }
  .preloader-logo   { width: 78px; }
  .preloader-number { font-size: clamp(2.3rem, 9.5vw, 3.2rem); margin-bottom: 1rem; }

  /* --- Hero --- */
  .hero {
    background-attachment: scroll;
    background-size: cover;
    background-position: 62% center;
    min-height: 100svh;
    height: auto;
    align-items: flex-start;
  }
  .hero-content {
    max-width: 100%;
    width: 100%;
    margin-inline: auto;
    transform: none;
    padding-inline: 1.5rem;
    padding-top: calc(var(--nav-h) + 1.65rem);
    padding-bottom: 3.2rem;
  }
  .hero-content > * { max-width: min(700px, 100%); }
  .hero-description { max-width: 100%; }

  /* --- Contact page --- */
  .contact-page { background-attachment: scroll; }
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card:nth-child(2) { border-right: none; }
  .contact-card:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.08); }
  .contact-card:nth-child(4) { border-right: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    max-width: 100%;
  }

  /* --- Layout --- */
  main { margin-top: 0; }

  /* --- Nav hamburger --- */
  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(28, 187, 196, 0.4);
    border-radius: 8px;
    background: rgba(28, 187, 196, 0.08);
    margin-left: auto;
    flex-shrink: 0;
    position: relative !important;
    top: auto;
    right: auto;
    z-index: 1002;
    opacity: 1;
    visibility: visible;
    justify-self: end;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-toggle:hover {
    background: rgba(28, 187, 196, 0.14);
    border-color: rgba(28, 187, 196, 0.6);
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    height: calc(100vh - var(--nav-h));
    background: linear-gradient(135deg, rgba(5, 11, 20, 0.96) 0%, rgba(10, 20, 35, 0.95) 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1.5rem 0 0;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 0 rgba(28, 187, 196, 0.1);
    border-left: none;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
  }
  
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
    list-style: none;
    border-bottom: 1px solid rgba(28, 187, 196, 0.12);
    margin: 0;
    padding: 0;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-link {
    font-size: 1.08rem;
    padding: 1.25rem 1.4rem;
    width: 100%;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    display: block !important;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    position: relative;
    box-sizing: border-box;
  }
  
  .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    color: var(--gold);
    background: rgba(28, 187, 196, 0.08);
  }
  
  .nav-link:hover::before,
  .nav-link:focus::before {
    transform: scaleY(1);
  }

  .nav-link.active {
    color: var(--gold);
    background: rgba(28, 187, 196, 0.08);
  }
  
  .nav-link.active::before {
    transform: scaleY(1);
  }
  
  .nav-cta {
    margin: 0.7rem 1.4rem;
    padding: 0.9rem 1.4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(28, 187, 196, 0.2) 0%, rgba(28, 187, 196, 0.12) 100%);
    border: 1.5px solid rgba(28, 187, 196, 0.5);
    border-radius: 8px;
    color: var(--gold) !important;
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 0.08em;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
  }
  
  .nav-cta:hover,
  .nav-cta:focus {
    background: rgba(28, 187, 196, 0.16);
    border-color: var(--gold);
    box-shadow: 0 0 16px rgba(28, 187, 196, 0.25);
  }

  .nav-cta.active,
  .nav-cta[aria-current='page'] {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark) !important;
    box-shadow: 0 0 16px rgba(28, 187, 196, 0.30);
  }

  /* --- Sections --- */
  .section { padding: 4.8rem 0; }
  .section-about  { border-radius: 0; padding-top: 6.3rem; }
  .section-cta    { padding-top: 4.5rem; padding-bottom: 4.5rem; }

  /* --- Grids → single column --- */
  .about-layout,
  .cards-grid,
  .process-grid,
  .attention-layout { grid-template-columns: 1fr; }

  .attention-content { grid-template-columns: repeat(2, 1fr); }
  .section-about .section-title { font-size: clamp(2.3rem, 7.1vw, 3.1rem); }
  .section-about .section-eyebrow { font-size: 0.68rem; }
  .section-about .section-text { font-size: 1.02rem; }
  .about-panel h3 { font-size: 1.18rem; }
  .about-panel li { font-size: 1rem; }
  .section-services .section-title { font-size: clamp(2.25rem, 7vw, 3rem); }
  .section-services .section-text { font-size: 1rem; }
  .card-title { font-size: 1.1rem; }
  .card-tag { font-size: 0.7rem; }
  .card-text { font-size: 0.94rem; }
  .attention-head .section-title { font-size: clamp(2.25rem, 7vw, 3rem); }
  .attention-head .section-text { font-size: 1rem; }
  .attention-item h3 { font-size: 0.96rem; }
  .attention-item p { font-size: 0.92rem; }

  .process-item { padding-right: 0.2rem; }
  .process-item::after { display: none; }
  .section-process .section-title { font-size: clamp(2.25rem, 7.1vw, 3rem); }
  .process-step { font-size: 0.9rem; }
  .process-title { font-size: 1.25rem; }
  .process-text { font-size: 1.02rem; }

  [data-tilt] { transform: none !important; }

  /* --- CTA --- */
  .cta-box {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
    gap: 1.25rem;
  }
  .cta-box .section-title { font-size: clamp(2rem, 6vw, 2.7rem); }
  .cta-box .section-text { font-size: 1.02rem; }
  .cta-points li { font-size: 0.94rem; }
  .cta-side {
    border-left: none;
    border-top: 1px solid rgba(28, 187, 196, 0.24);
    padding-left: 0;
    padding-top: 1rem;
  }

  /* --- Footer --- */
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem 1.1rem;
  }
  .footer-nav-label { width: 100%; }
  .footer-action { align-items: center; text-align: center; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-copy,
  .footer-cta { text-align: center; }
  .footer-cta { justify-self: center; }
  .footer-name { font-size: 1.08rem; }
  .footer-place { font-size: 0.9rem; }
  .footer-subtitle { font-size: 0.9rem; }
  .footer-nav-label { font-size: 0.78rem; }
  .footer-nav a { font-size: 0.88rem; }
  .footer-action-text { font-size: 1.04rem; }
  .footer-copy { font-size: 0.86rem; }
  .footer-legal { font-size: 0.8rem; }
}

/* ====================================================
   RESPONSIVE — 600 px  (large phone / portrait tablet)
==================================================== */
@media (max-width: 600px) {
  .section-container { padding-inline: 1.4rem; }

  .nav-logo { max-width: 195px; }
  .logo { height: 64px; }

  .nav-menu {
    width: 100%;
    padding: 1.2rem 0 max(2rem, env(safe-area-inset-bottom));
  }

  .nav-link {
    font-size: 1rem;
    padding: 1.15rem 1.3rem;
  }
  
  .nav-cta {
    margin: 0.65rem 1.3rem;
    padding: 0.85rem 1.3rem;
    font-size: 1rem;
  }

  .hero {
    background-size: cover;
    background-position: center center;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 11, 20, 0.94) 0%,
      rgba(5, 11, 20, 0.88) 68%,
      rgba(5, 11, 20, 0.82) 100%
    );
  }
  .hero-content {
    padding-inline: 1.2rem;
    padding-top: calc(var(--nav-h) + 1.35rem);
    padding-bottom: 11rem;
  }
  .hero-content > * { max-width: 100%; }
  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 0.65rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    text-align: center;
    width: 100%;
  }

  .section { padding: 4rem 0; }
  .cards-grid { gap: 0.9rem; }
  .section-about { padding-top: 5rem; }

  /* --- Contact page --- */
  .contact-cards-grid { grid-template-columns: 1fr; }
  .contact-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .contact-card:last-child { border-bottom: none; }
  .contact-card:nth-child(3),
  .contact-card:nth-child(4) { border-top: none; }
  .contact-main-title { font-size: clamp(2.6rem, 11vw, 3.8rem); }
}

/* ====================================================
   RESPONSIVE — 480 px  (phone)
==================================================== */
@media (max-width: 480px) {
  .header {
    padding-inline: max(0.7rem, env(safe-area-inset-left)) max(0.7rem, env(safe-area-inset-right));
  }
  .nav-logo { max-width: 178px; }
  .logo { height: 58px; }

  .nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    padding: 5px;
  }

  .nav-toggle span {
    width: 16px;
    height: 2px;
  }

  .nav-menu {
    padding: 1.5rem 0 max(2rem, env(safe-area-inset-bottom));
  }

  .nav-link {
    font-size: 0.96rem;
    padding: 1.05rem 1.2rem;
  }
  
  .nav-cta {
    margin: 0.55rem 1.2rem;
    padding: 0.78rem 1.2rem;
    font-size: 0.96rem;
  }

  .hero-line  { display: none; }
  .hero {
    background-size: cover;
    background-position: center center;
  }

  .hero-content {
    padding-top: calc(var(--nav-h) + 1.15rem);
  }

  main { margin-top: 0; }

  .section { padding: 3.5rem 0; }
  .section-container { padding-inline: 1.1rem; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  .attention-content { grid-template-columns: 1fr; }
  .section-about .section-title { font-size: clamp(2.02rem, 9vw, 2.75rem); }
  .section-about .section-eyebrow { font-size: 0.64rem; }
  .section-about .section-text { font-size: 0.98rem; }
  .about-panel h3 { font-size: 1.12rem; }
  .about-panel li { font-size: 0.96rem; }
  .section-services .section-title { font-size: clamp(2.02rem, 9vw, 2.6rem); }
  .section-services .section-text { font-size: 0.96rem; }
  .card-title { font-size: 1.02rem; }
  .card-tag { font-size: 0.66rem; }
  .card-text { font-size: 0.9rem; }
  .attention-head .section-title { font-size: clamp(2.02rem, 9vw, 2.7rem); }
  .attention-head .section-text { font-size: 0.96rem; }
  .attention-item h3 { font-size: 0.92rem; }
  .attention-item p { font-size: 0.9rem; }
  .section-process .section-title { font-size: clamp(2.02rem, 9vw, 2.5rem); }
  .section-process .section-eyebrow { font-size: 0.64rem; }
  .process-step { font-size: 0.86rem; }
  .process-title { font-size: 1.12rem; }
  .process-text { font-size: 0.96rem; }

  .btn { padding: 0.85rem 1.5rem; }

  .cta-box { padding: 1.6rem 1rem; }
  .cta-box .section-title { font-size: clamp(1.82rem, 8.3vw, 2.3rem); }
  .cta-box .section-text { font-size: 0.98rem; }
  .cta-points li { font-size: 0.9rem; }
  .cta-side .btn { font-size: 0.72rem; padding: 0.88rem 1.9rem; }
  .cta-points { margin-bottom: 1.6rem; }
  .cta-side .btn { margin-top: 0.4rem; }

  .footer-logo { width: 58px; }
  .footer-name { font-size: 0.98rem; }
  .footer-place { font-size: 0.82rem; }
  .footer-subtitle { font-size: 0.84rem; }
  .footer-nav-label { font-size: 0.72rem; }
  .footer-nav a { font-size: 0.8rem; }
  .footer-action-text { font-size: 0.94rem; }
  .footer-copy { font-size: 0.8rem; }
  .footer-legal { font-size: 0.74rem; letter-spacing: 0.14em; }

  .preloader-stationery { inset: 1rem; }
  .preloader-panel { padding: 0 1.1rem; }
  .preloader-eyebrow { margin-bottom: 1.6rem; font-size: 0.6rem; }
  .preloader-seal   { width: 86px; height: 86px; margin-bottom: 1.4rem; }
  .preloader-logo   { width: 68px; }
  .preloader-number  { font-size: clamp(2rem, 10vw, 2.7rem); margin-bottom: 0.9rem; }
  .preloader-tag     { font-size: 0.58rem; }

  .contact-hero-band {
    padding: 3rem 1.1rem 1.6rem;
  }
  .contact-main-title {
    font-size: clamp(2.15rem, 11.5vw, 3rem);
    letter-spacing: 0.08em;
  }
  .contact-lead {
    font-size: 0.92rem;
    line-height: 1.75;
  }
  .contact-cards-grid {
    padding: 0 1.1rem 3rem;
    margin-top: 1.2rem;
  }
  .contact-card {
    padding: 1.7rem 0.2rem 1.3rem;
  }
  .contact-card::before {
    left: 0;
  }
  .contact-card__value {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

/* ====================================================
   RESPONSIVE — 360 px  (very small phones)
==================================================== */
@media (max-width: 360px) {
  .nav-logo { max-width: 162px; }
  .logo { height: 54px; }

  .nav-menu {
    padding: 1.3rem 0 max(2rem, env(safe-area-inset-bottom));
  }

  .nav-link {
    font-size: 0.92rem;
    padding: 0.95rem 1.05rem;
    letter-spacing: 0.08em;
  }
  
  .nav-cta {
    margin: 0.5rem 1.05rem;
    padding: 0.72rem 1.05rem;
    font-size: 0.92rem;
  }

  .hero-title { font-size: clamp(1.7rem, 9vw, 2rem); }
  .hero-eyebrow { font-size: 0.6rem; letter-spacing: 0.18em; }

  .hero-content {
    padding-top: calc(var(--nav-h) + 0.95rem);
  }

  .section-container { padding-inline: 0.9rem; }
  .section-title { font-size: clamp(1.35rem, 7vw, 1.7rem); }

  .btn { font-size: 0.6rem; padding: 0.75rem 1.1rem; }

  .process-grid { gap: 0.8rem; }
  .footer-nav   { gap: 0.5rem 0.8rem; }

  .preloader-panel { padding-inline: 0.85rem; }

  .contact-main-title {
    font-size: clamp(1.85rem, 10vw, 2.3rem);
    letter-spacing: 0.06em;
  }
  .contact-lead {
    font-size: 0.86rem;
  }
  .contact-card__label {
    letter-spacing: 0.14em;
  }
  .contact-card__value {
    font-size: 0.86rem;
  }
}

@media (max-width: 320px) {
  .header {
    padding-inline: max(0.52rem, env(safe-area-inset-left)) max(0.52rem, env(safe-area-inset-right));
  }

  .navbar { gap: 0.45rem; }

  .nav-logo { max-width: 150px; }
  .logo { height: 50px; }

  .nav-toggle {
    width: 36px;
    height: 36px;
    padding: 4px;
    border: 1.5px solid rgba(28, 187, 196, 0.4);
    background: rgba(28, 187, 196, 0.08);
  }

  .nav-toggle span { 
    width: 14px;
    height: 2px;
  }

  .nav-menu {
    width: 100%;
    padding: 1rem 0 max(2rem, env(safe-area-inset-bottom));
  }
  
  .nav-link {
    font-size: 0.88rem;
    padding: 0.9rem 0.95rem;
  }
  
  .nav-cta {
    margin: 0.45rem 0.95rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.88rem;
  }
}

/* ====================================================
   RESPONSIVE — altura reducida en horizontal
==================================================== */
@media (max-height: 560px) and (orientation: landscape) {
  .hero,
  .panel-page,
  .contact-page {
    min-height: 100svh;
    height: auto;
  }

  .hero-content {
    padding-top: calc(var(--nav-h) + 1.1rem);
    padding-bottom: 2.2rem;
  }

  .contact-hero-band {
    padding-top: 2.3rem;
    padding-bottom: 1.2rem;
  }

  .contact-cards-grid {
    margin-top: 1rem;
    padding-bottom: 2rem;
  }
}

/* ====================================================
   RESPONSIVE — pantallas muy grandes
==================================================== */
@media (min-width: 1600px) {
  .section-container,
  .panel-content {
    max-width: 1460px;
  }

  .hero {
    background-size: cover;
    background-position: 72% center;
  }

  .hero-content {
    width: min(760px, 52vw);
    max-width: min(760px, 52vw);
    margin-inline: clamp(2rem, 5.2vw, 7rem) auto;
  }

  .contact-hero-band {
    max-width: 820px;
  }

  .contact-cards-grid {
    max-width: 1260px;
  }
}



@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-metric::before,
  .preloader-bg {
    animation: none;
  }

  [class*="preloader-"] {
    animation: none !important;
  }

  .hero-content {
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}
