/* =============================================================
   0. Fuentes locales
   ============================================================= */
@font-face {
  font-family: "Soho Gothic Pro";
  src: url("assets/fuentes/SohoGothicPro-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Soho Gothic Pro";
  src: url("assets/fuentes/SohoGothicPro-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Soho Gothic Pro";
  src: url("assets/fuentes/SohoGothicPro-Italic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:      #F2F3F5;
  --bg-2:    #E8EAED;
  --bg-card: #FFFFFF;
  --gold:    #009999;
  --gold-dim: rgba(0, 153, 153, 0.10);
  --gold-line: rgba(0, 153, 153, 0.30);
  --cream:   #1a2a3a;
  --cream-2: #4a5a6a;
  --cream-3: #7a8a9a;
  --line:    rgba(20, 90, 123, 0.12);
  --teal:    #009999;
  --blue:    #145A7B;

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Soho Gothic Pro", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  "Soho Gothic Pro", "Courier New", monospace;

  --gutter:     clamp(1.5rem, 5vw, 5rem);
  --section-py: clamp(3.5rem, 7vw, 6rem);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; }
address { font-style: normal; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 4px; font-size: .875rem; font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%; max-width: 1380px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-label {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.section-title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.section-desc {
  font-size: 1rem;
  color: var(--cream-2);
  max-width: 52ch;
  line-height: 1.8;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.section-header .section-title { margin-bottom: 0; }
.section-header .section-desc  { margin: 0 auto; }

.section-header-right {
  display: flex; flex-direction: column; gap: 1.5rem; align-items: center;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: .1rem;
  transition: gap .3s var(--ease-out), border-color .3s;
}
@media (hover: hover) {
  .link-arrow:hover { gap: 1rem; border-color: var(--gold); }
}

/* =============================================================
   4. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2.25rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .25s var(--ease-out), background .25s, box-shadow .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: #00b3b3;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 153, 153, 0.28);
  }
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--cream);
}
@media (hover: hover) {
  .btn-secondary:hover {
    background: var(--cream);
    color: var(--bg);
    transform: translateY(-2px);
  }
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold-line);
}
@media (hover: hover) {
  .btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
  }
}
.btn:active { transform: translateY(0) !important; }

/* WhatsApp FAB — flotante en todas las páginas */
.wa-fab {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  color: #fff;
  opacity: 0;
  animation: waFabIn .5s 1s var(--ease-out) forwards;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
@keyframes waFabIn {
  to { opacity: 1; }
}
@media (hover: hover) {
  .wa-fab:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: none; opacity: 1; }
}

/* =============================================================
   5. Reveal
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split]  { opacity: 1; transform: none; }

/* =============================================================
   6. NAV — píldora centrada estilo Prisma
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none; /* clicks solo en la píldora y el burger */
}

/* ── Botones redes sociales con color de marca ── */
.ntb-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: #fff;
  padding: .55rem 1.15rem;
  border-radius: 99px;
  transition: transform .25s var(--ease-out), opacity .25s, box-shadow .25s;
  white-space: nowrap;
}
@media (hover: hover) {
  .ntb-btn:hover { transform: translateY(-1px); opacity: .82; }
}
.ntb-btn:active { transform: translateY(0) !important; }

.ntb-wa { background: #25D366; }
.ntb-ig { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 55%, #fcb045 100%); }
.ntb-fb { background: #1877F2; }

/* Píldora negra centrada */
.nav-pill {
  pointer-events: all;
  display: none;
  align-items: center; gap: 2.5rem;
  background: rgba(0, 153, 153, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0, 153, 153, 0.30);
  border-radius: 0 0 1.5rem 1.5rem;
  padding: .875rem 2rem;
  /* entrada al cargar */
  opacity: 0;
  transform: translateY(-100%);
  animation: navDrop .7s .8s var(--ease-out) forwards;
  /* transición al hover de la píldora completa */
  transition: padding .4s var(--ease-out), gap .4s var(--ease-out), background .3s;
}
@media (min-width: 768px) { .nav-pill { display: flex; } }
@keyframes navDrop {
  to { opacity: 1; transform: translateY(0); }
}

/* La píldora se abre un poco al acercarse el cursor */
@media (hover: hover) {
  .nav-pill:hover {
    padding: 1.1rem 2.5rem;
    gap: 3rem;
  }
}

.nav-logo-pill { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img  { height: 2.8rem; width: auto; object-fit: contain; }
.nav-logo-text {
  font-family: var(--sans); font-size: 1.2rem; font-weight: 500;
  color: #ffffff; letter-spacing: -.02em;
}

.nav-links {
  display: flex; gap: .25rem;
}

/* Cada link es un flip 3D */
.nav-links a {
  position: relative;
  display: inline-flex; align-items: center;
  padding: .4rem .75rem;
  border-radius: 10px;
  font-size: .75rem; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  perspective: 600px;
  overflow: hidden;
  transition: color .3s, background .3s;
  text-decoration: none;
}

/* Capa frontal */
.nav-links a .nl-front {
  display: block;
  transform-origin: center bottom;
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(0.16,1,0.3,1), opacity .4s;
}
/* Capa trasera — empieza girada arriba */
.nav-links a .nl-back {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  color: #ffffff;
  transform-origin: center top;
  transform: rotateX(90deg);
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(0.16,1,0.3,1), opacity .4s;
  opacity: 0;
}

/* Glow radial de fondo en hover */
.nav-links a::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--nl-glow, rgba(255,255,255,0.10));
  border-radius: 10px;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

@media (hover: hover) {
  .nav-links a:hover { color: #ffffff; }
  .nav-links a:hover::before { opacity: 1; }
  .nav-links a:hover .nl-front {
    transform: rotateX(-90deg);
    opacity: 0;
  }
  .nav-links a:hover .nl-back {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

/* Link activo */
.nav-links a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
}

.nav-pill-cta {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .08em; color: #ffffff;
  padding: .4rem .9rem;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 99px;
  transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease-out);
  white-space: nowrap;
}
@media (hover: hover) {
  .nav-pill-cta:hover {
    color: var(--teal);
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.04);
  }
}

/* Burger móvil — flotante esquina sup-der */
.nav-burger {
  position: fixed; top: 1rem; right: 1.25rem;
  pointer-events: all;
  display: flex; flex-direction: column; gap: 5px;
  padding: .65rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  z-index: 101;
}
.nav-burger span {
  display: block; width: 22px; height: 1px;
  background: var(--cream); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 768px) { .nav-burger { display: none; } }

.nav-mobile {
  position: fixed; top: 0; left: 0; right: 0;
  pointer-events: all;
  display: none; flex-direction: column; gap: 0;
  background: rgba(242, 243, 245, 0.98);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding-top: 4rem;
  z-index: 100;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-links a {
  font-size: .85rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-2);
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--line);
  transition: color .2s, background .2s;
}
@media (hover: hover) { .nav-mobile-links a:hover { color: var(--cream); background: var(--bg-2); } }
.nav-mobile .btn { margin: 1.5rem var(--gutter) 2rem; }

/* =============================================================
   7. HERO — estilo Prisma: foto full-bleed, nombre enorme abajo-izq
   ============================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  border-radius: 0 0 1.5rem 1.5rem;
  background: #000;
}

/* Foto full-bleed */
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center bottom;
}

/* Noise overlay — igual que Prisma */
.hero-noise {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0.55;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* Gradient de arriba y de abajo como Prisma */
.hero-gradient {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.30) 0%,
    transparent 35%,
    transparent 50%,
    rgba(0,0,0,0.65) 100%
  );
  pointer-events: none;
}

/* Grid de contenido anclado al fondo */
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 1.5rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem) clamp(.75rem, 2vw, 1.5rem);
}
@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 8fr 4fr;
    gap: 2rem;
  }
}

/* Nombre gigante — izquierda */
.hero-name-col {
  overflow: visible;
  padding-bottom: .15em;
  display: flex; flex-direction: column; align-items: flex-end;
  width: fit-content;
}

/* Símbolo del logo sobre el nombre, alineado a la derecha como en el logo */
.hero-logo-mark {
  /* Mismas proporciones que el logo: ~30% del ancho del nombre, pegado a la S */
  font-size: clamp(10vw, 12vw, 14vw);
  width: 1.2em;
  height: auto;
  margin-bottom: -.27em;
  position: relative; z-index: 1;
  margin-right: .01em;
  opacity: 0;
  animation: fadeUp .8s .8s var(--ease-out) forwards;
}
.hero-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(10vw, 12vw, 14vw);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  white-space: nowrap;
}

/* Cada letra entra con fade + slide desde la izquierda */
.hero-name-char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-18px);
  animation: charIn .55s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 0.07s + 0.1s);
}
@keyframes charIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Descripción + CTA — derecha */
.hero-info-col {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding-bottom: clamp(.75rem, 2vw, 1.5rem);
  opacity: 0;
  animation: fadeUp .8s .5s var(--ease-out) forwards;
}

.hero-desc {
  font-size: clamp(.8rem, 1.2vw, .9375rem);
  color: rgba(255, 252, 240, 0.92);
  line-height: 1.55;
  max-width: 32ch;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Botón pill — efecto expand flecha */
.hero-cta-btn {
  position: relative;
  display: inline-flex; align-items: center;
  align-self: flex-start;
  overflow: hidden;
  background: var(--teal);
  color: #FFFFFF;
  font-size: clamp(.78rem, 1.1vw, .9rem);
  font-weight: 500;
  letter-spacing: .04em;
  padding: .5rem .5rem .5rem 1.5rem;
  border-radius: 99px;
  min-width: 8rem;
}
.hero-cta-label {
  margin-right: 2.5rem;
  transition: opacity .45s var(--ease-out);
  white-space: nowrap;
}
.hero-cta-arrow {
  position: absolute; right: .35rem; top: .35rem; bottom: .35rem;
  display: flex; align-items: center; justify-content: center;
  width: 25%; border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  z-index: 1;
  transition: width .45s var(--ease-out);
}
@media (hover: hover) {
  .hero-cta-btn:hover .hero-cta-label { opacity: 0; }
  .hero-cta-btn:hover .hero-cta-arrow { width: calc(100% - .7rem); }
  .hero-cta-btn:active .hero-cta-arrow { transform: scale(0.97); }
}

.hero-cta-group {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.hero-cta-valoracion {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: clamp(.74rem, 1vw, .85rem); font-weight: 500;
  letter-spacing: .03em;
  color: #FFFFFF;
  padding: .55rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 99px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease-out);
}
@media (hover: hover) {
  .hero-cta-valoracion:hover {
    background: #FFFFFF; color: var(--teal); border-color: #FFFFFF;
    transform: translateY(-2px);
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-name-char, .hero-info-col, .hero-logo-mark, .hero-bg img, .nav-pill { animation: none; opacity: 1; transform: none; }
}

/* =============================================================
   8. PROPUESTA — banda oscura con frase
   ============================================================= */
.propuesta {
  background: var(--cream);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.propuesta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(0,153,153,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.propuesta-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 1rem;
}
.propuesta-quote {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.propuesta-quote em { font-family: var(--serif); font-style: italic; color: var(--gold); font-weight: 400; }
.propuesta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: .02em;
}

/* =============================================================
   9. SERVICIOS — acordeón editorial
   ============================================================= */
.servicios {
  position: relative;
  z-index: 10;
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  background: var(--bg);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -12px 60px rgba(20, 90, 123, 0.15);
}

/* Header asimétrico servicios */
.servicios-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.servicios-header-left { display: flex; flex-direction: column; gap: .5rem; }
.servicios-header-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: .25rem;
  padding-bottom: .25rem;
}
.servicios-stat-num {
  font-family: var(--sans);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
}
.servicios-stat-label {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cream-3);
  text-align: right;
  line-height: 1.4;
}

/* Lista acordeón */
.servicios-accordion {
  border-top: 1px solid var(--line);
}

.sacc-item {
  border-bottom: 1px solid var(--line);
}

.sacc-trigger {
  width: 100%;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.6rem 0;
  background: none; border: none; cursor: pointer;
  text-align: left;
  transition: background .2s;
}
@media (hover: hover) {
  .sacc-trigger:hover .sacc-title { color: var(--gold); }
  .sacc-trigger:hover .sacc-num   { color: var(--gold); }
}

.sacc-num {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .14em; color: var(--cream-3);
  flex-shrink: 0; min-width: 2rem;
  transition: color .3s;
}

.sacc-title {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 500; color: var(--cream);
  letter-spacing: -0.02em; line-height: 1.1;
  flex: 1;
  transition: color .3s;
}

.sacc-icon {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: border-color .3s, background .3s, transform .4s var(--ease-out);
}
.sacc-icon::before,
.sacc-icon::after {
  content: '';
  position: absolute;
  background: var(--cream-2);
  border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .3s, background .3s;
}
.sacc-icon::before { width: 10px; height: 1.5px; }
.sacc-icon::after  { width: 1.5px; height: 10px; }

.sacc-trigger[aria-expanded="true"] .sacc-icon {
  background: var(--gold); border-color: var(--gold);
  transform: rotate(45deg);
}
.sacc-trigger[aria-expanded="true"] .sacc-icon::before,
.sacc-trigger[aria-expanded="true"] .sacc-icon::after { background: #fff; }
.sacc-trigger[aria-expanded="true"] .sacc-title { color: var(--gold); }
.sacc-trigger[aria-expanded="true"] .sacc-num   { color: var(--gold); }

/* Panel expandible */
.sacc-panel {
  overflow: hidden;
}
.sacc-panel[hidden] { display: none; }
.sacc-panel.is-animating { display: block; }

.sacc-panel-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .sacc-panel-inner {
    grid-template-columns: 1fr 1.6fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.sacc-panel-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
}
.sacc-panel-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.04);
  transition: transform .7s var(--ease-out);
}
.sacc-item.is-open .sacc-panel-img img { transform: scale(1); }

.sacc-panel-text {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.sacc-panel-text p {
  font-size: 1rem; color: var(--cream-2);
  line-height: 1.85; max-width: 52ch;
}

.sacc-panel-actions {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}

/* Servicios secundarios — sin imagen */
.sacc-panel-inner--slim {
  grid-template-columns: 1fr;
  max-width: 640px;
}

/* =============================================================
   10. NOSOTROS — split texto + cards 2×2
   ============================================================= */
.nosotros {
  padding-block: var(--section-py);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}

.nosotros-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
@media (min-width: 960px) {
  .nosotros-layout { grid-template-columns: 1fr 1.5fr; align-items: start; }
}

/* Columna izquierda */
.nosotros-left {
  display: flex; flex-direction: column; gap: 1.75rem;
}
@media (min-width: 960px) {
  .nosotros-left {
    position: sticky;
    top: clamp(6rem, 12vh, 8rem);
    padding-block: .35rem;
  }
}
.nosotros-intro {
  font-size: 1rem; color: var(--cream-2);
  line-height: 1.85; max-width: 42ch;
}

/* Cards 2×2 */
.nosotros-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 680px) {
  .nosotros-cards { grid-template-columns: 1fr; }
}

.ncard {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: default;
  isolation: isolate;
  will-change: transform;
  transition: border-color .3s, box-shadow .3s;
}
.ncard::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(0,153,153,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 1;
}
@media (hover: hover) {
  .ncard:hover {
    border-color: var(--gold-line);
    box-shadow: 0 12px 40px -8px rgba(0,153,153,0.14);
  }
  .ncard:hover::before { opacity: 1; }
  .ncard:hover .ncard-arrow { transform: translateX(4px); color: var(--gold); }
  .ncard:hover .ncard-img img { transform: scale(1.06); }
}

.ncard-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.ncard-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .6s var(--ease-out);
}

.ncard-body {
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .6rem;
  flex: 1;
}

.ncard-title {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500; color: var(--cream);
  letter-spacing: -.01em; line-height: 1.2;
}

.ncard-text {
  font-size: .85rem; color: var(--cream-2);
  line-height: 1.7; flex: 1;
}

.ncard-arrow {
  display: flex; align-items: center;
  color: var(--cream-3);
  margin-top: .5rem;
  transition: transform .3s var(--ease-out), color .3s;
}

/* =============================================================
   11. PROPIEDADES DESTACADAS
   ============================================================= */
.propiedades {
  padding-block: var(--section-py);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}
@media (min-width: 768px) {
  .prop-grid { grid-template-columns: repeat(3, 1fr); }
}

.prop-card {
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
@media (hover: hover) {
  .prop-card:hover {
    box-shadow: 0 12px 40px rgba(0,153,153,0.12);
    transform: translateY(-4px);
  }
}

.prop-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.prop-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
@media (hover: hover) {
  .prop-card:hover .prop-card-img img { transform: scale(1.04); }
}

.prop-badge {
  position: absolute; top: .85rem; left: .85rem;
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 2px;
  font-weight: 500;
}
.prop-badge--venta   { background: var(--teal); color: #fff; }
.prop-badge--alquiler { background: var(--blue); color: #fff; }

.prop-card-body {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex; flex-direction: column; flex: 1; gap: .75rem;
}

.prop-card-title {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500; color: var(--cream);
  line-height: 1.25; letter-spacing: -.01em;
}

.prop-card-desc {
  font-size: .875rem; color: var(--cream-2);
  line-height: 1.65; flex: 1;
}

.prop-card-specs {
  list-style: none; padding: 0;
  display: flex; gap: 1.25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.prop-card-specs li {
  display: flex; align-items: center; gap: .35rem;
  font-size: .8rem; color: var(--cream-2);
  font-family: var(--mono);
}
.prop-card-specs svg { color: var(--teal); flex-shrink: 0; }

.prop-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
  gap: .75rem; flex-wrap: wrap;
}

.prop-card-price {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500; color: var(--teal);
  letter-spacing: -.01em;
}

.prop-card-cta {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); border: 1px solid var(--blue);
  padding: .4rem .9rem; border-radius: 2px;
  transition: background .25s, color .25s;
  white-space: nowrap;
}
@media (hover: hover) {
  .prop-card-cta:hover { background: var(--blue); color: #fff; }
}

.prop-cta-wrap {
  display: flex; justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* =============================================================
   12. TESTIMONIOS
   ============================================================= */
.testimonios {
  padding-block: var(--section-py);
  background: var(--bg);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

/* Left */
.testimonios-left {
  display: flex; flex-direction: column;
  gap: 1.5rem;
}
.testimonios-sub {
  font-size: clamp(.9rem, 1.4vw, 1rem);
  color: var(--cream-2);
  line-height: 1.75;
  max-width: 42ch;
}

/* Dots */
.testimonios-dots {
  display: flex; align-items: center; gap: .6rem;
}
.t-dot {
  height: 10px; border-radius: 99px;
  background: rgba(0,153,153,0.25);
  border: none; cursor: pointer; padding: 0;
  transition: width .35s var(--ease-out), background .35s;
  width: 10px;
}
.t-dot.is-active {
  width: 2.5rem;
  background: var(--gold);
}

/* Cards stack */
.testimonios-cards {
  position: relative;
  min-height: 340px;
}

.testimonio-card {
  position: absolute; inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1.25rem;
  box-shadow: 0 8px 32px -8px rgba(20,50,80,0.10);
  opacity: 0;
  transform: translateX(60px) scale(0.97);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.testimonio-card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.tc-stars {
  display: flex; gap: .3rem;
  color: #f59e0b;
}
.tc-quote {
  width: 2rem; height: 2rem;
  color: var(--gold);
  opacity: .18;
  position: absolute;
  top: 1.75rem; right: 1.75rem;
}
.tc-text {
  font-family: var(--sans);
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.8;
  flex: 1;
}
.tc-sep {
  height: 1px;
  background: var(--line);
}
.tc-author {
  display: flex; align-items: center; gap: 1rem;
}
.tc-avatar {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: .875rem; font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
}
.tc-name {
  font-size: .9375rem; font-weight: 500; color: var(--cream);
}
.tc-role {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  margin-top: .2rem;
}

/* Decorativos */
.tc-deco {
  position: absolute;
  width: 5rem; height: 5rem;
  border-radius: 10px;
  background: var(--gold-dim);
  z-index: 0;
  pointer-events: none;
}
.tc-deco--bl { bottom: -1.5rem; left: -1.5rem; }
.tc-deco--tr { top: -1.5rem; right: -1.5rem; }

@media (max-width: 768px) {
  .testimonios-grid {
    grid-template-columns: 1fr;
  }
  .testimonios-cards { min-height: 420px; }
}

/* =============================================================
   13. CONTACTO
   ============================================================= */
.contacto {
  padding-block: var(--section-py);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.contacto-layout {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(3.5rem, 8vw, 7rem);
}
@media (min-width: 960px) {
  .contacto-layout { grid-template-columns: 1fr 1.1fr; }
}

.contacto-desc { color: var(--cream-2); line-height: 1.8; margin-bottom: 2.5rem; font-size: 1rem; }
.contacto-datos { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.contacto-dato { display: flex; align-items: flex-start; gap: 1rem; font-size: .9375rem; color: var(--cream-2); }
.contacto-dato svg { flex-shrink: 0; margin-top: .15rem; color: var(--gold); }
.contacto-dato a { color: var(--cream); transition: color .2s; }
@media (hover: hover) { .contacto-dato a:hover { color: var(--gold); } }

.contacto-social { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream-2);
  padding: .65rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color .25s, border-color .25s, transform .25s var(--ease-out);
}
@media (hover: hover) {
  .social-link:hover { color: var(--gold); border-color: var(--gold-line); transform: translateY(-2px); }
}

/* Formulario */
.contacto-form {
  display: flex; flex-direction: column; gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(2rem, 4vw, 3rem);
}
.form-row {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group label {
  font-family: var(--mono);
  font-size: .65rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-3);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid rgba(20, 90, 123, 0.18);
  border-radius: 2px;
  padding: .875rem 1rem;
  color: var(--cream);
  font-family: var(--sans);
  font-size: .9375rem;
  width: 100%;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(0, 153, 153, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--cream-3); }
.form-group select option { background: var(--bg-2); color: var(--cream); }
.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit { align-self: flex-start; min-width: 190px; justify-content: center; }
.btn-submit .btn-sending,
.btn-submit .btn-check { display: none; }
.btn-submit.is-sending .btn-label { display: none; }
.btn-submit.is-sending .btn-sending { display: block; }
.btn-submit.is-done .btn-label,
.btn-submit.is-done .btn-sending { display: none; }
.btn-submit.is-done .btn-check { display: block; }

.form-legal { font-size: .73rem; color: var(--cream-3); line-height: 1.6; }

.form-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 1rem;
  padding: 3.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 2px;
}
.form-success[hidden] { display: none; }
.form-success svg { color: var(--gold); }
.form-success h3 { font-family: var(--sans); font-size: 1.6rem; font-weight: 500; color: var(--cream); }
.form-success p  { color: var(--cream-2); line-height: 1.7; }
.form-success a  { color: var(--gold); }

/* =============================================================
   14. FOOTER
   ============================================================= */
.footer {
  background: #009999;
  border-top: none;
  padding-top: clamp(3.5rem, 8vw, 6rem);
}
.footer-inner {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-logo img { height: 5rem; width: auto; }
.footer-logo-text { font-family: var(--sans); font-size: 1.25rem; font-weight: 500; color: #fff; }
.footer-tagline { margin-top: .5rem; font-size: .875rem; color: rgba(255,255,255,0.80); }
.footer-tagline em { font-style: italic; color: #ffffff; font-weight: 500; }

.footer-nav { display: flex; flex-direction: column; gap: .85rem; }
.footer-nav a {
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,0.70); transition: color .2s;
}
@media (hover: hover) { .footer-nav a:hover { color: #fff; } }

.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact a, .footer-contact address { font-size: .875rem; color: rgba(255,255,255,0.70); transition: color .2s; }
@media (hover: hover) { .footer-contact a:hover { color: #fff; } }

.footer-portales-label {
  font-family: var(--mono); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,0.70); margin-bottom: .6rem;
}
.footer-portales-list { display: flex; flex-direction: column; gap: .4rem; }
.footer-portales-list span { font-size: .85rem; color: rgba(255,255,255,0.85); }

/* Text hover effect */
.footer-text-hover {
  width: 100%; height: clamp(100px, 18vw, 200px);
  overflow: hidden;
  margin-top: clamp(2rem, 5vw, 4rem);
  cursor: default;
  user-select: none;
}
.ft-neon {
  opacity: 0;
  filter: drop-shadow(0 0 3px #00eeff) drop-shadow(0 0 10px rgba(0,238,255,0.7));
  stroke-dasharray: var(--seg, 120) 600;
  stroke-dashoffset: 600;
}
.ft-neon.is-lit {
  opacity: 1;
  animation: ftSweep var(--dur, 3s) calc(var(--d) * 1ms) var(--ease, ease-in-out) infinite;
}
@keyframes ftSweep {
  0%   { stroke-dashoffset: 600; opacity: var(--op-start, 0.5); }
  50%  { opacity: 1; }
  100% { stroke-dashoffset: -600; opacity: var(--op-end, 0.3); }
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,0.75); }
.footer-bottom a { color: rgba(255,255,255,0.75); transition: color .2s; }
@media (hover: hover) { .footer-bottom a:hover { color: #fff; } }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { color: rgba(255,255,255,0.80); transition: color .2s, transform .2s; }
@media (hover: hover) { .footer-social a:hover { color: #fff; transform: translateY(-2px); } }

/* =============================================================
   16. SCROLL PROGRESS BAR
   ============================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; background: rgba(0,153,153,0.15); pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: var(--gold);
  transform-origin: 0 0; transform: scaleX(0);
  transition: transform .06s linear;
}

/* =============================================================
   17. FLOATING CTA (móvil)
   ============================================================= */
.floating-cta {
  position: fixed; bottom: 1.75rem; right: 5.75rem; z-index: 90;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 153, 153, 0.35);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
@media (hover: hover) {
  .floating-cta:hover { transform: scale(1.1); box-shadow: 0 12px 36px rgba(0, 153, 153, 0.5); }
}
@media (min-width: 768px) { .floating-cta { display: none; } }

/* =============================================================
   18. TRANSICIONES ENTRE PÁGINAS — View Transitions API
   Progressive enhancement: navegadores sin soporte navegan normal.
   ============================================================= */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .42s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) {
  animation-name: vtFadeOut;
}
::view-transition-new(root) {
  animation-name: vtFadeIn;
}
@keyframes vtFadeOut {
  to { opacity: 0; transform: translateY(-8px) scale(0.992); }
}
@keyframes vtFadeIn {
  from { opacity: 0; transform: translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* =============================================================
   19. PULIDO — sheen en botones + foco refinado
   ============================================================= */
/* Brillo que barre el botón primario y el CTA del hero al hover */
.btn-primary,
.hero-cta-btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after,
.hero-cta-btn::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.38) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .65s var(--ease-out);
  pointer-events: none;
}
.btn-primary > * { position: relative; z-index: 1; }
.hero-cta-label { position: relative; z-index: 1; }
@media (hover: hover) {
  .btn-primary:hover::after,
  .hero-cta-btn:hover::after { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after, .hero-cta-btn::after { display: none; }
}

/* Foco visible más suave y coherente con la marca */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 5px rgba(0,153,153,0.14);
}

/* Badge de propiedad: leve sombra para despegarlo de la foto */
.prop-badge {
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  backdrop-filter: saturate(1.2);
}
