/* =============================================================
   TORREANI & ASOCIADOS — styles.css
   Archetype: Cinematic 3D (navy / platinum), sober & premium
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand palette — derived from the logo */
  --bg-deep:    #02101f;   /* near-black navy (page base) */
  --bg:         #03203f;   /* brand navy */
  --bg-soft:    #062c52;   /* lighter navy */
  --bg-card:    #08284a;

  --platinum:   #e9eef2;   /* primary text, never pure white */
  --silver:     #c2ccd4;
  --silver-mut: #8a99a6;   /* metadata / muted */
  --silver-dim: rgba(233,238,242,0.42);

  --accent:     #9ec7ea;   /* luminous steel-blue (from navy family) */
  --accent-2:   #5b8fc4;
  --gold:       #c9a86a;   /* whisper of champagne, used sparingly */

  --line:       rgba(233,238,242,0.12);
  --line-soft:  rgba(233,238,242,0.07);

  --escudo-bg:  #03203f;   /* feeds the SVG inner cut */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  /* Apple-native sans: SF Pro on Apple devices, Inter elsewhere */
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Apple's signature timing curve (used across apple.com) */
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);

  --pad: clamp(1.4rem, 5vw, 7rem);
  --maxw: 1320px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--bg-deep);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.011em;       /* Apple-style tightened body tracking */
  color: var(--platinum);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.015em; font-weight: 400; }
::selection { background: var(--accent); color: var(--bg-deep); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--platinum); color: var(--bg);
  z-index: 10001; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* Emblem coloring */
.esc-rim { fill: var(--silver); }
.esc-bg  { fill: var(--escudo-bg); }

/* =============================================================
   3. Background scene + contrast layers
   ============================================================= */
.scene {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
.scene canvas { display: block; width: 100%; height: 100%; }

.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(2,16,31,0.45) 0%, rgba(2,16,31,0.15) 22%,
    rgba(2,16,31,0.10) 60%, rgba(2,16,31,0.55) 100%);
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 40%,
    transparent 38%, rgba(2,16,31,0.45) 78%, rgba(2,16,31,0.85) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* Everything above the scene */
.nav, main, .footer, .nav-mobile, .splash, .cursor, .scroll-progress { position: relative; z-index: 3; }
.scene-content { position: relative; z-index: 3; }

/* =============================================================
   4. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-deep);
  display: grid; place-items: center;
  transition: opacity 1s var(--ease-out), clip-path 1.1s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out {
  opacity: 0; pointer-events: none;
  clip-path: inset(0 0 100% 0);
}
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.splash-emblem {
  width: 54px; height: 65px; color: var(--silver);
  opacity: 0; transform: translateY(14px) scale(0.96);
  animation: splashIn 1s var(--ease-out) .15s forwards;
}
.splash-word {
  font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.46em;
  text-indent: 0.46em; color: var(--platinum);
  opacity: 0; animation: splashIn 1s var(--ease-out) .4s forwards;
}
.splash-line { display: block; width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.splash-line i { display: block; height: 100%; width: 100%; background: var(--accent); transform: translateX(-101%); animation: splashBar 1.6s var(--ease-soft) .6s forwards; }
@keyframes splashIn { to { opacity: 1; transform: none; } }
@keyframes splashBar { to { transform: translateX(0); } }

/* =============================================================
   5. Custom cursor
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; display: none;
  mix-blend-mode: difference; opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: #fff; border-radius: 50%; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px; border: 1px solid rgba(255,255,255,0.85); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s;
}
.cursor.is-interactive .cursor-ring { width: 56px; height: 56px; margin: -28px; background: rgba(255,255,255,0.08); }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* =============================================================
   6. Scroll progress
   ============================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: rgba(255,255,255,0.05); pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--gold));
  transform-origin: 0 0; transform: scaleX(0); transition: transform .1s linear;
}

/* =============================================================
   7. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 120;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.4rem var(--pad);
  transition: padding .5s var(--ease-out), background-color .5s var(--ease-out), backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 0.85rem var(--pad);
  background: rgba(3,18,33,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.nav-emblem { width: 24px; height: 29px; color: var(--silver); transition: transform .6s var(--ease-out); }
.nav-brand:hover .nav-emblem { transform: rotate(-4deg) scale(1.05); }
.nav-word { font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0.06em; line-height: 1; }
.nav-word i { font-style: italic; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--silver-mut); display: block; margin-top: 2px; }
.nav-links { display: none; gap: 2.2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--silver);
  text-transform: uppercase; padding: 0.3rem 0; transition: color .35s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--platinum); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  display: none; font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 0.7rem 1.4rem; border: 1px solid var(--line); border-radius: 100px;
  color: var(--platinum); transition: border-color .4s, background .4s, color .4s;
}
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }
.nav-cta:hover { background: var(--platinum); color: var(--bg-deep); border-color: var(--platinum); }

.nav-burger { display: inline-flex; flex-direction: column; gap: 6px; width: 34px; padding: 6px 4px; }
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span { display: block; height: 1.5px; width: 26px; background: var(--platinum); transition: transform .4s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(2,16,31,0.97);
  backdrop-filter: blur(18px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile a {
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); color: var(--silver);
  opacity: 0; transform: translateY(18px); transition: color .3s;
}
.nav-mobile[aria-hidden="false"] a { animation: menuItem .6s var(--ease-out) forwards; }
.nav-mobile a:nth-child(1) { animation-delay: .12s; }
.nav-mobile a:nth-child(2) { animation-delay: .2s; }
.nav-mobile a:nth-child(3) { animation-delay: .28s; }
.nav-mobile a:nth-child(4) { animation-delay: .36s; }
.nav-mobile a:hover { color: var(--platinum); }
@keyframes menuItem { to { opacity: 1; transform: none; } }

/* =============================================================
   8. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; border-radius: 100px; font-size: 0.9rem; letter-spacing: 0.02em;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), background .4s, color .4s, border-color .4s;
}
.btn-primary {
  background: var(--platinum); color: var(--bg-deep); font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -16px rgba(158,199,234,0.4), 0 12px 24px -10px rgba(0,0,0,0.6); }
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-ghost { border: 1px solid var(--line); color: var(--platinum); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(158,199,234,0.06); transform: translateY(-3px); }

/* =============================================================
   9. Shared section bits
   ============================================================= */
main { display: block; }
section { padding-block: clamp(5rem, 12vh, 10rem); padding-inline: var(--pad); position: relative; }
.section-head { max-width: var(--maxw); margin: 0 auto clamp(2.5rem, 6vw, 5rem); }
.section-num {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem;
}
.section-title { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.02; max-width: 16ch; }
.section-title em, .firma-statement em, .hero-title em, .contacto-title em { font-style: italic; color: var(--silver); }

.kicker {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--silver-mut); margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(158,199,234,0.5); animation: pulse 2.6s var(--ease-soft) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(158,199,234,0.45); } 70% { box-shadow: 0 0 0 9px rgba(158,199,234,0); } 100% { box-shadow: 0 0 0 0 rgba(158,199,234,0); } }
@media (prefers-reduced-motion: reduce) { .kicker .dot { animation: none; } }

/* =============================================================
   10. Hero
   ============================================================= */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 6rem;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.7rem, 8.5vw, 7rem); line-height: 1.0;
  letter-spacing: -0.02em; max-width: 16ch; margin-bottom: clamp(1.6rem, 4vw, 2.2rem);
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--silver);
  max-width: 46ch; line-height: 1.6; font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2rem, 5vw, 3rem); }
.hero-scroll {
  display: flex; align-items: center; gap: 0.8rem; margin-top: clamp(3rem, 8vh, 6rem);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver-mut);
}
.hero-scroll i { display: block; width: 1px; height: 40px; background: linear-gradient(180deg, var(--accent), transparent); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--platinum); animation: scrollDrop 2.2s var(--ease-soft) infinite; }
@keyframes scrollDrop { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll i::after { animation: none; } }

/* =============================================================
   11. Firma
   ============================================================= */
.firma-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 960px) { .firma-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.firma-statement {
  font-family: var(--serif); font-size: clamp(1.8rem, 4.2vw, 3.2rem); line-height: 1.12;
  font-weight: 400; letter-spacing: -0.01em;
}
.firma-body { display: grid; gap: 1.4rem; max-width: 52ch; }
.firma-body p { color: var(--silver); font-size: 1.05rem; }

/* =============================================================
   12. Servicios
   ============================================================= */
.serv-grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
@media (min-width: 860px) { .serv-grid { grid-template-columns: 1fr 1fr; } }
.serv-card {
  position: relative; padding: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(165deg, rgba(8,40,74,0.55), rgba(3,18,33,0.35));
  backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
  overflow: hidden; isolation: isolate;
  /* Specular top edge + soft ambient depth (Apple glass) */
  box-shadow: inset 0 1px 0 rgba(233,238,242,0.10), 0 1px 1px rgba(0,0,0,0.2);
  transition: border-color .6s var(--ease-apple), transform .6s var(--ease-apple), box-shadow .6s var(--ease-apple);
}
.serv-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(158,199,234,0.14), transparent 60%);
  transition: opacity .5s;
}
.serv-card:hover { border-color: rgba(158,199,234,0.4); transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(233,238,242,0.16), 0 50px 90px -34px rgba(0,0,0,0.75), 0 0 60px -30px rgba(158,199,234,0.4); }
.serv-card:hover::before { opacity: 1; }
.serv-index { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--accent); }
.serv-name { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.05; margin: 1rem 0 1.2rem; }
.serv-desc { color: var(--silver); margin-bottom: 1.8rem; max-width: 42ch; }
.serv-list { display: grid; gap: 0.85rem; margin-bottom: 2rem; }
.serv-list li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; color: var(--silver); }
.serv-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border: 1px solid var(--accent); transform: rotate(45deg); }
.serv-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; letter-spacing: 0.02em; color: var(--platinum); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: gap .4s, border-color .4s; }
.serv-link i { font-style: normal; transition: transform .4s var(--ease-out); }
.serv-link:hover { border-color: var(--accent); }
.serv-link:hover i { transform: translateX(6px); }

/* =============================================================
   13. Stats
   ============================================================= */
.stats { padding-block: clamp(3rem, 8vh, 6rem); }
.stats-grid {
  max-width: var(--maxw); margin: 0 auto; display: grid; gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { }
.stat-value { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; color: var(--platinum); letter-spacing: -0.02em; }
.stat-value .suffix { color: var(--accent); }
.stat-label { margin-top: 0.8rem; font-size: 0.86rem; color: var(--silver-mut); line-height: 1.5; max-width: 22ch; }

/* =============================================================
   14. Equipo
   ============================================================= */
.persona {
  max-width: var(--maxw); margin: 0 auto; display: grid; gap: clamp(1.6rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line);
}
@media (min-width: 960px) { .persona { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.persona-mono { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.persona-name { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1; margin: 1rem 0 0.8rem; }
.persona-role { color: var(--silver-mut); font-size: 0.95rem; }
.persona-body p { color: var(--silver); max-width: 56ch; }
.persona-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0; }
.persona-tags li {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--silver);
  padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 100px;
  transition: border-color .4s, color .4s;
}
.persona-tags li:hover { border-color: var(--accent); color: var(--platinum); }
.persona-edu { font-size: 0.85rem; color: var(--silver-mut); border-left: 1px solid var(--line); padding-left: 1.1rem; }

/* =============================================================
   15. Proceso
   ============================================================= */
.proceso-list { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 720px) { .proceso-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .proceso-list { grid-template-columns: repeat(4, 1fr); } }
.proceso-step { background: rgba(3,18,33,0.5); padding: clamp(1.8rem, 3vw, 2.6rem); transition: background .5s; }
.proceso-step:hover { background: rgba(8,40,74,0.55); }
.proceso-num { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.proceso-step h3 { font-family: var(--serif); font-size: 1.7rem; margin: 1.2rem 0 0.7rem; }
.proceso-step p { font-size: 0.92rem; color: var(--silver-mut); }

/* =============================================================
   16. Contacto
   ============================================================= */
.contacto { padding-block: clamp(6rem, 14vh, 12rem); }
.contacto-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.contacto-title { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 1.02; margin: 1.4rem auto; max-width: 18ch; }
.contacto-sub { color: var(--silver); max-width: 50ch; margin: 0 auto clamp(2.5rem, 6vw, 4rem); font-size: 1.08rem; }
.contacto-cards { display: grid; gap: 1.2rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 720px) { .contacto-cards { grid-template-columns: 1fr 1fr; } }
.contacto-card {
  padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(165deg, rgba(8,40,74,0.5), rgba(3,18,33,0.3));
  backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(233,238,242,0.08);
  text-align: left; transition: border-color .6s var(--ease-apple), transform .6s var(--ease-apple), box-shadow .6s var(--ease-apple);
}
.contacto-card:hover { border-color: rgba(158,199,234,0.4); transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(233,238,242,0.16), 0 40px 80px -34px rgba(0,0,0,0.7); }
.cc-mono { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.cc-name { font-family: var(--serif); font-size: 1.7rem; margin: 0.7rem 0 0.4rem; }
.cc-phone { display: inline-block; font-family: var(--mono); font-size: 1.05rem; color: var(--silver); margin-bottom: 1.4rem; letter-spacing: 0.02em; transition: color .3s; }
.cc-phone:hover { color: var(--platinum); }
.cc-actions { display: flex; gap: 0.7rem; }
.cc-btn { flex: 1; text-align: center; padding: 0.75rem 1rem; border-radius: 100px; font-size: 0.84rem; background: var(--platinum); color: var(--bg-deep); font-weight: 500; transition: transform .4s var(--ease-soft), box-shadow .4s; }
.cc-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(158,199,234,0.45); }
.cc-btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--platinum); }
.cc-btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.contacto-mail {
  display: inline-block; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 2.2rem); color: var(--silver); position: relative; padding-bottom: 6px;
}
.contacto-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.contacto-mail:hover { color: var(--platinum); }
.contacto-mail:hover::after { transform: scaleX(1); }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) var(--pad); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 1.4rem; place-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.05em; }
.footer-brand i { font-style: italic; color: var(--silver-mut); }
.footer-emblem { width: 22px; height: 26px; color: var(--silver); }
.footer-tag { font-size: 0.85rem; color: var(--silver); letter-spacing: 0.02em; }
.footer-copy { font-family: var(--mono); font-size: 0.72rem; color: var(--silver-mut); letter-spacing: 0.04em; }

/* =============================================================
   18. Reveal animations
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* Defensive: split elements never stay invisible */
[data-split] { }
.reveal[data-split], [data-reveal][data-split] { opacity: 1; transform: none; }
.split-word { display: inline-block; }
.split-word.is-hidden { opacity: 0; transform: translateY(28px) rotate(2deg); }
[data-split].is-animated .split-word { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }

/* =============================================================
   18b. Apple-style hero parallax-out (JS-driven, see main.js)
   The opening copy gently lifts, scales and dissolves as you scroll
   past it — the signature apple.com moment. Driven from a single
   rAF scroll loop in JS (deterministic; never hides content at rest).
   ============================================================= */
.hero-inner { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  .hero-inner { will-change: auto; }
}

/* =============================================================
   19. Responsive
   ============================================================= */
@media (max-width: 540px) {
  .hero-title { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .serv-card { border-radius: 16px; }
}

/* =============================================================
   20. Reduced motion (only intrusive)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .splash-line i, .splash-emblem, .splash-word { animation-duration: .01s; }
}
