/* ============================================================
   OFICINA JURÍDICA R&R — Clean White + Dark Footer
   ============================================================ */

:root {
  --white:   #ffffff;
  --black:   #0d0d0d;
  --ink:     #111111;
  --gray:    #555555;
  --line:    #e0e0e0;
  --gold:    #ffd136;
  --gold2:   #ffd136;
  --bg-alt:  #f7f7f7;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --max:  1160px;
  --px:   64px;
  --ease: cubic-bezier(.4,0,.2,1);
  --out:  cubic-bezier(.16,1,.3,1);
}

/* ── RESET ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth; font-size:16px }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a    { color:inherit; text-decoration:none }
img  { display:block; max-width:100% }
ul   { list-style:none }
button { background:none; border:none; cursor:pointer; font:inherit }

::-webkit-scrollbar { width:3px }
::-webkit-scrollbar-track { background:#f0f0f0 }
::-webkit-scrollbar-thumb { background:#ccc; border-radius:3px }

/* ── REVEAL ── */
.reveal {
  opacity:0;
  transform: translateY(30px);
  transition: opacity .9s var(--out), transform .9s var(--out);
}
.reveal.on { opacity:1; transform:translateY(0) }

/* ════════════════════════════════════
   NAVBAR
════════════════════════════════════ */
.nav {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(0,0,0,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 24px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* logo */
.nav-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: none;
  transition: filter .4s;
}
.nav.scrolled .nav-logo-img { filter: none }

/* links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links > li { position: relative }
.nav-links > li > a,
.nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  border-radius: 4px;
  transition: color .25s, background .25s;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover {
  color: var(--white);
}
.nav.scrolled .nav-links > li > a,
.nav.scrolled .nav-links > li > button {
  color: var(--gray);
}
.nav.scrolled .nav-links > li > a:hover,
.nav.scrolled .nav-links > li > button:hover {
  color: var(--ink);
  background: var(--bg-alt);
}

/* flecha dropdown */
.drop-arrow {
  width: 10px; height: 10px;
  transition: transform .3s var(--out);
}
.has-drop.open .drop-arrow { transform: rotate(180deg) }

/* dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s var(--out), transform .25s var(--out);
  list-style: none;
}
.has-drop.open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: .84rem;
  font-weight: 400;
  color: var(--gray);
  transition: color .2s, background .2s, padding-left .2s;
}
.dropdown li a:hover {
  color: var(--ink);
  background: var(--bg-alt);
  padding-left: 26px;
}

/* botón CTA navbar */
.nav-cta {
  padding: 9px 22px !important;
  background: var(--gold) !important;
  color: var(--black) !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  letter-spacing: .1em;
  transition: background .3s !important;
}
.nav-cta:hover { background: var(--gold2) !important }

/* nav-actions wrapper */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* botón lupa */
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: rgba(255,255,255,.75);
  transition: color .25s, background .25s;
}
.search-btn svg { width: 18px; height: 18px }
.search-btn:hover { color: var(--white) }
.nav.scrolled .search-btn { color: var(--gray) }
.nav.scrolled .search-btn:hover { color: var(--ink); background: var(--bg-alt) }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,.8);
  transition: transform .35s var(--ease), opacity .3s;
}
.nav.scrolled .hamburger span { background: var(--ink) }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px) }
.hamburger.open span:nth-child(2) { opacity:0 }

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-photo { position:absolute; inset:0 }
.hero-img {
  width:100%; height:100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position:absolute; inset:0;
  background: linear-gradient(
    to right,
    rgba(8,8,8,.35) 0%,
    rgba(8,8,8,.15) 50%,
    rgba(8,8,8,.03) 100%
  );
}
.hero-content {
  position: relative; z-index:2;
  max-width: var(--max); width:100%;
  margin: 0 auto;
  padding: 0 var(--px) 100px;
}
.hero-label {
  font-size: .72rem; letter-spacing:.3em; text-transform:uppercase;
  color: var(--gold2); display:block; margin-bottom:20px;
  opacity:0; animation: fadeUp .8s var(--out) .2s forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 7.5vw, 7rem);
  font-weight: 300; line-height: 1.05;
  color: var(--white); max-width:680px; margin-bottom:24px;
  opacity:0; animation: fadeUp .9s var(--out) .4s forwards;
}
.hero-title em { font-style:italic; color:var(--gold2) }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.62); max-width:460px; line-height:1.8; margin-bottom:44px;
  opacity:0; animation: fadeUp .9s var(--out) .62s forwards;
}
.hero-btns {
  display:flex; gap:16px; flex-wrap:wrap;
  opacity:0; animation: fadeUp .9s var(--out) .82s forwards;
}
.hero-scroll {
  position:absolute; bottom:40px; left:50%;
  transform:translateX(-50%); z-index:3;
  opacity:0; animation: fadeUp .8s var(--out) 1.1s forwards;
}
.scroll-bar {
  display:block; width:1px; height:56px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.45), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px) }
  to   { opacity:1; transform:translateY(0) }
}
@keyframes pulse {
  0%,100% { opacity:.9 }
  50%      { opacity:.2 }
}

/* botones globales */
.btn-gold {
  display:inline-flex; align-items:center;
  padding: 14px 34px;
  background: var(--gold); color: var(--black);
  font-size: .8rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  border-radius: 3px;
  transition: background .3s, transform .3s var(--out);
}
.btn-gold:hover { background:var(--gold2); transform:translateY(-2px) }

.btn-ghost {
  display:inline-flex; align-items:center;
  padding: 13px 34px;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.85);
  font-size: .8rem; font-weight:400; letter-spacing:.14em; text-transform:uppercase;
  border-radius: 3px;
  transition: border-color .3s, background .3s;
}
.btn-ghost:hover { border-color:rgba(255,255,255,.8); background:rgba(255,255,255,.08) }

.btn-black {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 32px;
  background: var(--ink); color: var(--white);
  font-size: .8rem; font-weight:400; letter-spacing:.14em; text-transform:uppercase;
  border-radius: 3px;
  transition: background .3s, transform .3s var(--out);
}
.btn-black:hover { background:#222; transform:translateY(-2px) }

/* ════════════════════════════════════
   SERVICE SECTIONS — base
════════════════════════════════════ */
.service-section {
  background: var(--white);
  padding: 104px 0;
}
.ss-alt { background: var(--bg-alt) }

.ss-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  gap: 72px;
  align-items: center;
}
.ss-img-left  { grid-template-columns: 48% 1fr }
.ss-img-right { grid-template-columns: 1fr 48% }

/* textos de sección */
.ss-eyebrow {
  font-size: .95rem; font-weight:400;
  letter-spacing: .28em; text-transform:uppercase;
  color: var(--gold); display:block; margin-bottom:14px;
  text-shadow:
  0 1px 1px rgba(0,0,0,0.12);
}
.ss-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 300; color: var(--ink); line-height:1.1;
  margin-bottom: 20px;
  text-shadow:
  0 2px 4px rgba(0,0,0,0.18),
  0 8px 18px rgba(0,0,0,0.12);
}
.ss-title em { font-style:italic; color:var(--gold) }

.pro-name-title {
  font-family: 'Great Vibes', cursive !important;
}
.ss-desc {
  font-size: 1.05rem; color: var(--gray);
  line-height: 1.85; margin-bottom: 32px;
  max-width: 520px;
}

/* lista con guión — */
.ss-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.ss-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  transition: padding-left .2s, color .2s;
}
.ss-list li:hover { padding-left: 6px; color: var(--black) }

.li-dash {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}

/* ════════════════════════════════════
   EFECTO FLOTANTE EN IMAGEN (sin rotación)
════════════════════════════════════ */
.ss-image { }

.img-3d-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 20px 56px rgba(0,0,0,.14),
    0  8px 20px rgba(0,0,0,.07);
  transition: transform .5s var(--out), box-shadow .5s var(--out);
}
.img-3d-wrap:hover {
  transform: translateY(-10px);
  box-shadow:
    0 36px 80px rgba(0,0,0,.18),
    0 16px 32px rgba(0,0,0,.09);
}

.img-3d-right {
  /* misma sombra, sin diferencia de dirección */
}

.ss-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

/* placeholder si no hay imagen */
.img-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed var(--line);
}
.img-placeholder::before {
  content: '';
  width: 72px; height: 72px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='24' cy='18' r='8' stroke='%23ccc' stroke-width='1.5'/%3E%3Cpath d='M8 42c0-8.837 7.163-16 16-16s16 7.163 16 16' stroke='%23ccc' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/56px no-repeat;
}
.img-placeholder::after {
  content: 'profesional.jpg';
  font-size: .72rem; letter-spacing:.14em; text-transform:uppercase; color:#bbb;
}

/* ════════════════════════════════════
   SEARCH OVERLAY
════════════════════════════════════ */
.search-overlay {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  z-index: 998;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--out), opacity .25s var(--ease);
}
.search-overlay.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.search-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  border-bottom: 1px solid var(--line);
}
.search-icon-inner { width: 20px; height: 20px; color: var(--gray); flex-shrink: 0 }
.search-input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font-family: var(--sans);
  font-size: 1.05rem; font-weight: 300;
  color: var(--ink); letter-spacing: .01em;
}
.search-input::placeholder { color: #bbb }
.search-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--gray);
  transition: color .2s, background .2s;
}
.search-close svg { width: 16px; height: 16px }
.search-close:hover { color: var(--ink); background: var(--bg-alt) }

.search-results {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--px) 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.search-result-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 4px;
  transition: background .2s;
  cursor: pointer;
}
.search-result-item:hover { background: var(--bg-alt) }
.sri-text { font-size: .95rem; color: var(--ink) }
.sri-text mark { background: transparent; color: var(--gold); font-weight: 500 }
.sri-tag {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #aaa; white-space: nowrap; margin-left: 16px;
  padding: 3px 10px; border-radius: 20px; background: var(--bg-alt);
  flex-shrink: 0;
}
.search-empty { padding: 12px 14px; font-size: .92rem; color: var(--gray) }
.search-empty strong { color: var(--ink) }

/* ════════════════════════════════════
   VER MÁS — Notarial
════════════════════════════════════ */
li.ss-extra { display: none }
#notarialList.expanded li.ss-extra { display: flex }

.ver-mas-btn {
  display: flex; align-items: center; gap: 8px;
  margin-top: 0;
  padding: 14px 0;
  font-size: .78rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
  transition: color .25s;
}
.ver-mas-btn:hover { color: var(--ink) }
.ver-mas-arrow {
  width: 10px; height: 10px;
  transition: transform .35s var(--out);
}

/* ════════════════════════════════════
   ASESORÍA — layout columna
════════════════════════════════════ */
.asesoria-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.asesoria-header { max-width: 640px }
.asesoria-photo {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

/* ════════════════════════════════════
   FLIP CARDS — Asesoría
════════════════════════════════════ */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 32px;
}

/* versión ancha (asesoría full-width) */
.flip-grid-wide {
  gap: 24px;
  margin-top: 0;
}
.flip-grid-wide .flip-card { height: 320px }
.flip-grid-wide .flip-back ul li {
  font-size: .94rem;
  padding: 10px 0;
}

.flip-card {
  perspective: 900px;
  cursor: pointer;
  height: 220px;
  outline: none;
}
.flip-card:focus-visible .flip-inner {
  box-shadow: 0 0 0 3px var(--gold);
}

.flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s var(--out);
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg) }

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* frente */
.flip-front {
  background: var(--white);
  border: 1px solid var(--line);
  gap: 12px;
  transition: border-color .3s, box-shadow .3s;
}
.flip-card:hover .flip-front {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.flip-front svg {
  width: 40px; height: 40px;
  color: var(--gold);
  flex-shrink: 0;
}
.flip-front > span {
  font-family: var(--serif);
  font-size: 1.8rem; font-weight:400;
  color: var(--ink); text-align:center;
  line-height: 1.2;
}
.flip-hint {
  font-size: 1rem; letter-spacing:.12em; text-transform:uppercase;
  color: #bbb; margin-top:4px;
}

/* reverso */
.flip-back {
  background: var(--ink);
  transform: rotateY(180deg);
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px;
  gap: 0;
  overflow-y: auto;
}
.flip-back h4 {
  font-family: var(--serif);
  font-size: 1.8rem; font-weight:400; font-style:italic;
  color: var(--gold2); margin-bottom:12px;
}
.flip-back ul { width:100% }
.flip-back ul li {
  font-size: .88rem; color: rgba(255,255,255,.75);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  line-height: 1.4;
}
.flip-back ul li:last-child { border-bottom:none }

/* ════════════════════════════════════
   PROFESIONAL
════════════════════════════════════ */
.pro-section { padding: 104px 0 }

.pro-name-title { margin-bottom:8px }
.pro-role {
  font-size: .8rem; letter-spacing:.16em; text-transform:uppercase;
  color: #999; margin-bottom:28px;
}
.pro-quote {
  font-family: var(--serif);
  font-size: 1.15rem; font-style:italic;
  color: var(--ink); line-height:1.75;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 24px;
}
.pro-bio {
  font-size: 1.05rem; color: var(--gray);
  line-height: 1.85; margin-bottom: 8px;
}

/* ════════════════════════════════════
   CONTACTO — Dónde estamos
════════════════════════════════════ */
.contact-section {
  background: var(--white);
  padding: 104px 0;
}
.contact-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}
.contact-header { margin-bottom:56px }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* foto del local */
.local-photo-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 20px 56px rgba(0,0,0,.14),
    0  8px 20px rgba(0,0,0,.07);
  transition: transform .5s var(--out), box-shadow .5s var(--out);
}
.local-photo-wrap:hover {
  transform: translateY(-10px);
  box-shadow:
    0 36px 80px rgba(0,0,0,.18),
    0 16px 32px rgba(0,0,0,.09);
}
.local-photo {
  width:100%; height:100%;
  object-fit:cover;
}

/* placeholder foto local */
.local-placeholder {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border: 1px dashed var(--line);
}
.local-placeholder::before {
  content: '';
  width: 60px; height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='6' y='10' width='36' height='28' rx='2' stroke='%23ccc' stroke-width='1.5'/%3E%3Ccircle cx='19' cy='22' r='4' stroke='%23ccc' stroke-width='1.5'/%3E%3Cpath d='M6 34l10-8 6 6 8-10 12 12' stroke='%23ccc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/48px no-repeat;
}
.local-placeholder::after {
  content: 'local.jpg — Foto del local';
  font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:#bbb;
}

/* mapa + detalles */
.cg-map-info { display:flex; flex-direction:column; gap:32px }

.map-embed-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed-wrap iframe {
  width:100%; height:100%;
  border:0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.cd-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cd-block h4 {
  font-size: .72rem; font-weight:500;
  letter-spacing: .2em; text-transform:uppercase;
  color: var(--gold); margin-bottom:8px;
}
.cd-block p {
  font-size: 1rem; color: var(--ink); line-height:1.7;
}
.cd-block a {
  color: var(--ink);
  transition: color .25s;
}
.cd-block a:hover { color:var(--gold) }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer {
  background: var(--black);
  padding: 64px 0 48px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 48px;
}
.footer-logo {
  height: 42px; width:auto; object-fit:contain;
  filter: none;
  margin-bottom: 16px;
}
.footer-brand p { font-size:.84rem; color:rgba(255,255,255,.35); line-height:1.7 }
.footer-nav { display:flex; flex-direction:column; align-items:center; gap:12px }
.footer-nav a {
  font-size:.74rem; letter-spacing:.14em; text-transform:uppercase;
  color: rgba(255,255,255,.35);
  transition: color .3s;
}
.footer-nav a:hover { color:rgba(255,255,255,.8) }
.footer-copy { font-size:.74rem; color:rgba(255,255,255,.25); line-height:1.7; text-align:right }

.webdesign-link {
  color: #d5d560;
  text-decoration: underline;
  font-weight: 700;
}

/* ════════════════════════════════════
   SCROLL PROGRESS BAR
════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 2000;
  width: 0%;
  transition: width .08s linear;
  pointer-events: none;
}

/* ════════════════════════════════════
   MARQUEE
════════════════════════════════════ */
.marquee-strip {
  background: var(--black);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 36s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused }
.m-word {
  font-size: .67rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.m-sep {
  color: var(--gold);
  opacity: .45;
  margin: 0 22px;
  font-size: .67rem;
}
@keyframes marqueeScroll {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}

/* ════════════════════════════════════
   GHOST SECTION NUMBERS
════════════════════════════════════ */
.service-section {
  position: relative;
  overflow: hidden;
}
.service-section[data-num]::before {
  content: attr(data-num);
  position: absolute;
  right: -1vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(120px, 21vw, 270px);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,.042);
  pointer-events: none;
  user-select: none;
}

/* ════════════════════════════════════
   LISTA — COUNTER NUMERADO + HOVER
════════════════════════════════════ */
.li-dash { display: none }

.ss-list { counter-reset: li-item }

.ss-list li {
  counter-increment: li-item;
  padding: 17px 28px 17px 40px;
  position: relative;
  opacity: 0;
  transform: translateX(-14px);
  transition:
    padding-left .3s var(--out),
    box-shadow .3s,
    color .25s,
    opacity .55s var(--out) calc(var(--idx,0) * 52ms),
    transform .55s var(--out) calc(var(--idx,0) * 52ms);
}
.ss-list li::before {
  content: counter(li-item, decimal-leading-zero);
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  font-size: .66rem;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--gold);
  font-family: var(--sans);
  line-height: 1;
  transition: letter-spacing .3s var(--out);
}
.ss-list li::after {
  content: '→';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%) translateX(-8px);
  font-size: .78rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity .3s, transform .3s var(--out);
}
.ss-list li:hover {
  padding-left: 48px;
  box-shadow: inset 3px 0 0 var(--gold);
  color: var(--black);
}
.ss-list li:hover::before { letter-spacing: .16em }
.ss-list li:hover::after { opacity:1; transform: translateY(-50%) translateX(0) }

.ss-content.on .ss-list li { opacity:1; transform:translateX(0) }

/* ════════════════════════════════════
   ESTADÍSTICAS
════════════════════════════════════ */
.stats-strip { background: var(--black); padding: 88px 0 }
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  text-align: center;
}
.stat-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  padding: 0 40px;
}
.stat-num-wrap { display:flex; align-items:baseline; gap:4px }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  font-weight: 300; color: var(--white);
  line-height: 1; letter-spacing: -.02em;
}
.stat-suf {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300; color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255,255,255,.32); line-height:1.5;
}
.stat-sep { width:1px; height:64px; background:rgba(255,255,255,.1); flex-shrink:0 }

/* ════════════════════════════════════
   FLIP CARDS — GLOW PREMIUM
════════════════════════════════════ */
.flip-card:not(.flipped):hover .flip-front {
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold),
    0 16px 48px rgba(255,209,54,.1);
}
.flip-card.flipped .flip-inner { box-shadow: 0 24px 56px rgba(0,0,0,.24) }

/* ════════════════════════════════════
   IMAGE — OVERLAY DORADO EN HOVER
════════════════════════════════════ */
.img-3d-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,209,54,.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.img-3d-wrap:hover::after { opacity: 1 }

/* ════════════════════════════════════
   WHATSAPP FAB
════════════════════════════════════ */
.wa-fab {
  position: fixed; bottom:32px; right:32px; z-index:800;
  width:54px; height:54px;
  background: #25d366; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform .35s var(--out), box-shadow .35s;
}
.wa-fab svg { width:26px; height:26px; color:#fff }
.wa-fab:hover { transform:scale(1.1) translateY(-3px); box-shadow:0 8px 32px rgba(37,211,102,.45) }
.wa-tip {
  position:absolute; right:64px;
  background:var(--white); color:var(--ink);
  font-size:.72rem; font-weight:500; letter-spacing:.06em;
  padding:7px 13px; border-radius:3px; white-space:nowrap;
  opacity:0; pointer-events:none;
  transform:translateX(6px);
  transition: opacity .3s, transform .3s;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.wa-fab:hover .wa-tip { opacity:1; transform:translateX(0) }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width:1024px) {
  :root { --px:40px }
  .ss-wrap    { gap:48px }
  .flip-grid  { grid-template-columns:1fr 1fr 1fr }
  .footer-inner { grid-template-columns:1fr 1fr }
  .footer-copy  { text-align:left; grid-column:1/-1 }
  .footer-nav   { align-items:flex-start; flex-direction:row; flex-wrap:wrap; gap:10px 24px }
}

@media (max-width:768px) {
  :root { --px:24px }

  /* search en móvil — centrado */
  .search-inner { padding: 0 var(--px); justify-content: center }
  .search-input { text-align: center }
  .search-input::placeholder { text-align: center }
  .search-results { padding: 8px var(--px) 12px }

  /* nav móvil */
  .nav-links {
    position: fixed; top:0; right:-100%;
    width: 290px; height:100dvh;
    background: var(--white); border-left:1px solid var(--line);
    flex-direction:column; justify-content:center; align-items:flex-start;
    gap:4px; padding:80px 32px;
    transition: right .4s var(--out); z-index:1000;
    box-shadow: -8px 0 32px rgba(0,0,0,.08);
  }
  .nav-links.open { right:0 }
  .nav-links > li > a,
  .nav-links > li > button { color:var(--gray) !important; font-size:.9rem; padding:12px 16px; width:100% }
  .nav-links > li > a:hover,
  .nav-links > li > button:hover { color:var(--ink) !important }
  .dropdown {
    position:static; box-shadow:none; border:none;
    padding:0 0 0 16px; opacity:1; pointer-events:auto;
    transform:none; background:transparent;
  }
  .has-drop.open .dropdown { display:block }
  .dropdown { display:none }
  .hamburger { display:flex }

  /* hero — recentrar imagen en móvil */
  .hero-img {
    object-position: center center;
  }

  /* secciones */
  .service-section,
  .pro-section,
  .contact-section { padding:72px 0 }

  .ss-wrap,
  .ss-img-left,
  .ss-img-right { grid-template-columns:1fr; gap:40px }

  /* en móvil la imagen siempre arriba */
  .ss-img-right .ss-image { order:-1 }

  /* sombra más sutil en móvil */
  .img-3d-wrap,
  .img-3d-right {
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
  }

  /* flip cards */
  .flip-grid { grid-template-columns:1fr; gap:12px }
  .flip-card { height:auto; min-height:160px }
  .flip-grid-wide .flip-card { height:auto; min-height:200px }

  /* contacto */
  .contact-grid { grid-template-columns:1fr; gap:40px }

  .local-photo-wrap {
    transform:none;
    box-shadow:0 8px 32px rgba(0,0,0,.12);
  }

  /* footer */
  .footer-inner { grid-template-columns:1fr; gap:24px }
  .footer-copy  { text-align:left }

  /* estadísticas */
  .stats-inner { grid-template-columns:1fr; gap:48px }
  .stat-sep { width:64px; height:1px }
  .stat-item { padding:0 }

  /* ghost number más pequeño en móvil */
  .service-section[data-num]::before { font-size:90px; right:-5px }

  /* marquee */
  .marquee-strip { padding:14px 0 }
}

@media (max-width:480px) {
  .hero-title { font-size:3rem }
  .hero-btns  { flex-direction:column; align-items:flex-start }
  .ss-title   { font-size:2.2rem }
  .flip-grid  { grid-template-columns:1fr }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important }
}
