/* VERSA · capa de diseño premium. Se carga al final de <head> y afina todas las páginas públicas:
   tipografía editorial (Fraunces + Inter), botón dorado sólido, filetes dorados, tarjetas con relieve y hero partido. */

:root {
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --gold-grad: linear-gradient(135deg, #E3C98F 0%, #C9A96E 45%, #A98445 100%);
  --linea-dorada: linear-gradient(90deg, transparent, rgba(201,169,110,.55), transparent);
  --card-bg: linear-gradient(180deg, rgba(26,31,46,.85), rgba(16,21,33,.85));
  --radio: 16px;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(201,169,110,.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------ tipografía */
.h1-hero, .h2-section, .h3-card.serif {
  font-family: var(--serif);
  font-optical-sizing: auto;
}
.h1-hero { font-size: clamp(38px, 5.6vw, 72px); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; }
.h2-section { font-size: clamp(30px, 3.8vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; color: var(--text-primary); }
.h1-hero em, .h2-section em { font-style: italic; font-weight: 400; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h3-card { font-weight: 600; letter-spacing: -.01em; }

.caption, .section-header .caption {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .18em;
}
.caption::before { content: ''; width: 28px; height: 1px; background: var(--gold); opacity: .8; }
.section-header { max-width: 720px; }
.section-header .caption { margin-bottom: 20px; }
.section-header p { font-size: 17px; line-height: 1.7; }
.section-header h2 { margin-bottom: 20px; }

/* ------------------------------------------------------------ botones */
.btn { border-radius: 999px; padding: 15px 30px; font-weight: 600; letter-spacing: .01em; }
.btn-primary { background: var(--gold-grad); color: #0A0E17; border: 1px solid transparent; box-shadow: 0 6px 28px rgba(201,169,110,.22), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { background: var(--gold-grad); filter: brightness(1.08); box-shadow: 0 10px 36px rgba(201,169,110,.34), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-secondary { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-10); }
.btn .flecha { transition: transform .3s var(--transition-smooth); }
.btn:hover .flecha { transform: translateX(4px); }

/* ------------------------------------------------------------ navegación */
.versa-navbar { padding: 22px 0; }
.versa-navbar.scrolled { background: rgba(10,14,23,.78); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
.nav-links a { font-size: 13.5px; letter-spacing: .01em; }
.nav-links a.nav-cta { padding: 11px 22px; font-size: 13.5px; }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #0A0E17; }
.nav-links a.btn-primary.active::after { display: none; }

/* ------------------------------------------------------------ pie */
.versa-footer { position: relative; border-top: 0; background: linear-gradient(180deg, #0A0E17, #070a11); }
.versa-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--linea-dorada); }
.footer-col h4 { color: var(--gold); letter-spacing: .16em; font-size: 12px; }

/* ------------------------------------------------------------ tarjetas */
.service-card, .tech-card, .value-card, .contact-card, .faq-item, .platform-card, .team-card, .method-card {
  border-radius: var(--radio);
}
.service-card { background: var(--card-bg); border: 1px solid rgba(255,255,255,.07); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -30px rgba(0,0,0,.7); }
.service-card:hover { border-color: rgba(201,169,110,.4); }

/* ------------------------------------------------------------ hero de inicio, partido */
.versa-hero { align-items: stretch; justify-content: flex-start; min-height: 100svh; }
.versa-hero .hero-bg img { filter: brightness(.34) saturate(.7) contrast(1.05); transform: scale(1.04); }
.versa-hero .hero-overlay {
  background:
    radial-gradient(ellipse 55% 60% at 78% 45%, rgba(201,169,110,.13), transparent 70%),
    linear-gradient(90deg, rgba(10,14,23,.94) 0%, rgba(10,14,23,.72) 48%, rgba(10,14,23,.55) 100%),
    linear-gradient(180deg, rgba(10,14,23,.35), rgba(10,14,23,.2) 55%, #0A0E17 100%);
}
.versa-hero::after { /* grano fino, da textura de papel fotográfico */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-wrap { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 130px 0 0; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-bottom: 56px; }
.hero-copy { text-align: left; }
.hero-copy .hero-badge { margin-bottom: 28px; background: rgba(201,169,110,.08); }
.hero-copy .h1-hero { margin-bottom: 26px; animation: fadeInUp .9s ease-out .35s both; }
.hero-copy .hero-subtitle { margin: 0 0 38px; max-width: 540px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; }
.hero-copy .hero-ctas { justify-content: flex-start; }

.hero-visual { position: relative; animation: fadeInUp 1s ease-out .6s both; perspective: 1600px; }
.hero-visual::before { /* resplandor tras la pantalla */
  content: ''; position: absolute; inset: 8% -6% -8% 6%; background: radial-gradient(closest-side, rgba(201,169,110,.28), transparent 75%); filter: blur(30px); z-index: 0;
}
.hero-marco {
  position: relative; z-index: 1; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.14);
  background: #0d1220; box-shadow: 0 50px 100px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(201,169,110,.12);
  transform: rotateY(-7deg) rotateX(3deg); transform-origin: 100% 50%; transition: transform .7s var(--transition-smooth);
}
.hero-visual:hover .hero-marco { transform: rotateY(-2deg) rotateX(1deg); }
.hero-marco-barra { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #131a2b; border-bottom: 1px solid rgba(255,255,255,.07); }
.hero-marco-barra i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.hero-marco-barra span { margin-left: 10px; font-size: 11px; color: var(--silver); letter-spacing: .02em; }
.hero-marco img { width: 100%; height: auto; display: block; }
.hero-flota {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgba(16,21,33,.82); border: 1px solid rgba(201,169,110,.28); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.8); animation: float 6s ease-in-out infinite;
}
.hero-flota b { display: block; font-size: 13px; color: var(--text-primary); line-height: 1.25; }
.hero-flota small { display: block; font-size: 11.5px; color: var(--silver); }
.hero-flota .gw-dot { width: 10px; height: 10px; margin: 0; box-shadow: 0 0 0 4px rgba(46,204,113,.15); }
.hero-flota.a { left: -28px; bottom: 14%; }
.hero-flota.b { right: -14px; top: -22px; animation-delay: -3s; }
.hero-flota .gw-dot.por_vencer { box-shadow: 0 0 0 4px rgba(233,185,73,.16); }

.hero-cifras { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.09); background: linear-gradient(180deg, rgba(10,14,23,.4), rgba(10,14,23,.9)); backdrop-filter: blur(8px); }
.hero-cifras .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-cifras .cifra { padding: 26px 24px; border-left: 1px solid rgba(255,255,255,.08); }
.hero-cifras .cifra:first-child { border-left: 0; padding-left: 0; }
.hero-cifras b { display: block; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 400; color: var(--gold); line-height: 1.1; letter-spacing: -.02em; }
.hero-cifras span { display: block; margin-top: 6px; font-size: 13px; color: var(--silver); line-height: 1.4; }
.versa-hero .scroll-indicator { display: none; }

@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-ctas { justify-content: center; }
  .hero-marco { transform: none; }
  .hero-flota.a { left: 8px; }
  .hero-flota.b { right: 8px; }
  .hero-cifras .container { grid-template-columns: repeat(2, 1fr); }
  .hero-cifras .cifra:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-cifras .cifra:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 640px) {
  .hero-wrap { padding-top: 104px; }
  .hero-flota { display: none; }
  .hero-cifras .cifra { padding: 20px 16px; }
}

/* ------------------------------------------------------------ cabeceras de las otras páginas */
.page-hero-content .h1-hero, .tech-hero-content .h1-hero, .about-hero-content .h1-hero, .contact-hero-content .h1-hero { font-size: clamp(36px, 5vw, 62px); }

/* ------------------------------------------------------------ cierre */
.cta-section .cta-content .h2-section { font-size: clamp(32px, 4.4vw, 54px); }

@media (prefers-reduced-motion: reduce) {
  .hero-flota, .hero-visual, .hero-copy .h1-hero { animation: none; }
  .hero-marco, .btn, .btn .flecha { transition: none; }
}

/* ajustes finos */
.caption { margin-bottom: 16px; }
@media (max-width: 640px) {
  .hero-cifras b { font-size: 24px; }
  .hero-copy .h1-hero { font-size: clamp(34px, 9.5vw, 44px); }
}

/* ------------------------------------------------------------ dos pilares */
.pilares-cabeza { max-width: 760px; margin: 0 0 56px; }
.pilares-cabeza p { margin-top: 20px; color: var(--silver); font-size: 17px; line-height: 1.7; max-width: 620px; }
.pilares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.pilar { position: relative; padding: 40px; border-radius: 22px; background: var(--card-bg); border: 1px solid rgba(255,255,255,.08); overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 80px -40px rgba(0,0,0,.8); display: flex; flex-direction: column; }
.pilar::before { content: ''; position: absolute; top: 0; left: 40px; right: 40px; height: 1px; background: var(--linea-dorada); }
.pilar-oro { border-color: rgba(201,169,110,.3); background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(201,169,110,.13), transparent 60%), var(--card-bg); }
.pilar-num { position: absolute; top: 28px; right: 36px; font-family: var(--serif); font-size: 64px; line-height: 1; color: rgba(201,169,110,.16); }
.pilar-icono { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; color: var(--gold); background: var(--gold-10); border: 1px solid var(--gold-20); margin-bottom: 28px; }
.pilar h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.015em; line-height: 1.15; margin-bottom: 14px; }
.pilar > p { color: var(--silver); line-height: 1.7; margin-bottom: 24px; }
.pilar ul { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.pilar li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.55; color: var(--text-primary); opacity: .9; }
.pilar li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 1px; background: var(--gold); }
.pilar .service-link { margin-top: auto; }
@media (max-width: 860px) { .pilares { grid-template-columns: 1fr; } .pilar { padding: 32px 26px; } }
