/* ============================================================
   CIMA F&D ASESORES — Landing Page Styles v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --marino:        #1B2A4A;
  --marino-light:  #253D6A;
  --marino-80:     rgba(27, 42, 74, 0.92);
  --dorado:        #B8924A;
  --dorado-20:     rgba(184, 146, 74, 0.20);
  --dorado-40:     rgba(184, 146, 74, 0.40);
  --crema:         #F5F0E8;
  --blanco-roto:   #FAFAF8;
  --gris-cuerpo:   #555555;
  --error-rojo:    #C0392B;
  --font-serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', system-ui, sans-serif;
  --radius:        8px;
  --shadow-card:   0 2px 16px rgba(27, 42, 74, 0.08);
  --shadow-dorado: 0 4px 24px rgba(166, 124, 82, 0.30);
  --transition:    200ms ease;
  --max-w:         1120px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--gris-cuerpo);
  background: var(--blanco-roto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a        { color: inherit; text-decoration: none; }
ul       { list-style: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--marino);
  letter-spacing: -0.01em;
}

.section-title--light  { color: #fff; }
.section-title--dorado { color: var(--dorado); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--dorado);
  color: #fff;
  border-color: var(--dorado);
}

/* Shimmer sweep */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
  transform: skewX(-18deg);
  transition: none;
}

.btn--primary:hover {
  background: #9a7836;
  border-color: #9a7836;
  box-shadow: var(--shadow-dorado);
  transform: translateY(-2px);
}

.btn--primary:hover::after {
  animation: shimmer 0.55s ease forwards;
}

@keyframes shimmer {
  to { left: 160%; }
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* --- Divider --- */
.divider {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--dorado), transparent);
  margin-block: 20px;
  border-radius: 2px;
}

.divider--center { margin-inline: auto; }

/* --- Scroll-reveal --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease var(--delay, 0ms),
              transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) var(--delay, 0ms);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--dorado), #d4aa78);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ============================================================
   GEOMETRIC BRAND TRIANGLES
   ============================================================ */
.geo-tri {
  position: absolute;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

/* Top-left: triángulo dorado (esquina superior izquierda) */
.geo-tri--tl {
  top: 0; left: 0;
  border-right: 200px solid transparent;
  border-top: 200px solid var(--dorado);
  opacity: 0.10;
}

/* Bottom-right: triángulo dorado (esquina inferior derecha) */
.geo-tri--br {
  bottom: 0; right: 0;
  border-left: 180px solid transparent;
  border-bottom: 180px solid var(--dorado);
  opacity: 0.08;
}

/* Top-right: triángulo marino (para secciones claras) */
.geo-tri--tr {
  top: 0; right: 0;
  border-left: 220px solid transparent;
  border-top: 220px solid var(--marino);
  opacity: 0.07;
}

.geo-tri--navy { border-top-color: var(--marino); }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--marino);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

#site-header.scrolled {
  background: rgba(27, 42, 74, 0.96);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 4px 32px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.logo__mark {
  width: 34px;
  height: 32px;
  color: var(--dorado);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.logo:hover .logo__mark {
  transform: translateY(-2px) scale(1.05);
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__cima {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1;
}

.logo__sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.58rem;
  color: var(--dorado);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
}

/* Header navigation */
.header-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.header-nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.25s ease;
}

.header-nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0;
  height: 1px;
  background: var(--dorado);
  transition: width 0.3s ease;
}

.header-nav__link:hover {
  color: #fff;
}

.header-nav__link:hover::after {
  width: 100%;
}

@media (min-width: 900px) {
  .header-nav { display: flex; }
}

.header-cta {
  font-size: 0.78rem;
  padding: 9px 18px;
}

/* ============================================================
   HERO — Photo background with inline form
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  background-color: var(--marino);
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}

/* Remove old pseudo-element backgrounds */
#hero::before,
#hero::after { display: none; }

/* Photo background */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Dark overlay on top of photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(27, 42, 74, 0.92) 0%, rgba(27, 42, 74, 0.78) 45%, rgba(27, 42, 74, 0.55) 100%),
    linear-gradient(to top, rgba(27, 42, 74, 0.80) 0%, transparent 50%);
  pointer-events: none;
}

/* Gold decorative wave at bottom */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 4;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

@media (min-width: 900px) {
  .hero-wave svg { height: 120px; }
}

/* Logo watermark */
.hero-watermark {
  position: absolute;
  right: -4%;
  bottom: 5%;
  width: min(480px, 50vw);
  height: auto;
  color: rgba(184, 146, 74, 0.06);
  pointer-events: none;
  z-index: 2;
}

.hero-watermark svg {
  width: 100%;
  height: 100%;
}

/* ---- Hero split layout ---- */
.hero-split {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 60px 110px;
}

@media (min-width: 900px) {
  .hero-split {
    flex-direction: row;
    align-items: center;
    gap: 60px;
    padding-block: 80px 140px;
  }
}

/* LEFT — Text content */
.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(32px);
  animation: heroReveal 0.82s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.18s; }
.hero-content > *:nth-child(2) { animation-delay: 0.40s; }
.hero-content > *:nth-child(3) { animation-delay: 0.58s; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-headline span {
  color: var(--dorado);
  font-style: italic;
}

.hero-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.78;
}

/* Trust signals */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.hero-trust li svg {
  color: var(--dorado);
  flex-shrink: 0;
}

/* RIGHT — Form card (glassmorphism) */
.hero-form-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 0.9s 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@media (min-width: 900px) {
  .hero-form-card {
    flex-shrink: 0;
  }
}

.hero-form-card__title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.hero-form-card__title strong {
  color: var(--dorado);
  font-weight: 700;
}

/* Form fields inside hero card — light on dark */
.hero-form-card .form-group input[type="text"],
.hero-form-card .form-group input[type="email"],
.hero-form-card .form-select {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 13px 16px;
  font-size: 0.92rem;
  border-radius: var(--radius);
  width: 100%;
  font-family: var(--font-sans);
  -webkit-appearance: none;
  appearance: none;
}

.hero-form-card .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.hero-form-card .form-group input:focus,
.hero-form-card .form-select:focus {
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px var(--dorado-20);
  outline: none;
}

.hero-form-card .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B8924A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.60);
}

.hero-form-card .form-select option {
  background: var(--marino);
  color: #fff;
}

.hero-form-card .checkbox-group label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.hero-form-card .form-group {
  margin-bottom: 14px;
}

.hero-form-card .btn--primary {
  width: 100%;
  margin-top: 8px;
}

/* Form Success Message */
.form-success {
  text-align: center;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: heroReveal 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.form-success__icon {
  width: 60px;
  height: 60px;
  background: rgba(184, 146, 74, 0.15);
  color: var(--dorado);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-form-card .form-success__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #ffffff;
  line-height: 1.1;
  font-style: italic;
}

.hero-form-card .form-success__text {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.5;
}

.hero-form-card .form-success__text strong {
  color: #ffffff;
  font-weight: 700;
}

/* Hide unused old hero elements */
.hero-eyebrow,
.hero-orb,
.hero-panel,
.hero-edge,
.hero-scroll-indicator { display: none; }


/* Ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
}

.hero-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(184,146,74,0.28) 0%, rgba(184,146,74,0.08) 45%, transparent 70%);
  top: -240px;
  right: -120px;
  animation: orbFloat1 14s ease-in-out infinite;
}

.hero-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37,61,106,0.70) 0%, rgba(27,42,74,0.30) 50%, transparent 70%);
  bottom: -80px;
  left: -120px;
  animation: orbFloat2 18s ease-in-out infinite;
}

.hero-orb--3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(184,146,74,0.18) 0%, transparent 70%);
  top: 35%;
  right: 22%;
  animation: orbFloat3 11s ease-in-out infinite;
}

/* Extra orb — deep bottom right pour depth */
.hero-orb--4 {
  display: block;
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,61,106,0.50) 0%, transparent 70%);
  filter: blur(90px);
  bottom: 5%;
  right: 0;
  animation: orbFloat2 22s ease-in-out infinite reverse;
  z-index: 0;
  pointer-events: none;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-25px, 18px) scale(1.04); }
  66%       { transform: translate(18px, -12px) scale(0.97); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(22px, -30px) scale(1.06); }
  70%       { transform: translate(-12px, 14px) scale(0.96); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-18px, 22px); }
}

/* ---- Diagonal accent panel (right side) ---- */
.hero-panel {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  z-index: 1;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  background: linear-gradient(
    160deg,
    rgba(37, 61, 106, 0.60) 0%,
    rgba(27, 42, 74, 0.95) 50%,
    rgba(184, 146, 74, 0.12) 100%
  );
  pointer-events: none;
}

/* Grid lines inside the panel */
.hero-panel__grid {
  position: absolute;
  inset: 0;
  display: flex;
  padding-left: 30%;
  gap: 0;
}

.hero-panel__line {
  flex: 1;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.hero-panel__line:first-child { border-left: 1px solid rgba(184, 146, 74, 0.18); }

.hero-panel__line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
}

/* Floating metric cards inside the panel */
.hero-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(27, 42, 74, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 16px 20px;
  opacity: 0;
  transform: translateX(30px);
  animation: cardSlide 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  pointer-events: auto;
}

.hero-card__num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dorado);
  line-height: 1;
  font-style: italic;
}

.hero-card__label {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.hero-card--1 { top: 24%; right: 12%; animation-delay: 0.6s; }
.hero-card--2 { top: 48%; right: 6%;  animation-delay: 0.85s; }
.hero-card--3 { top: 72%; right: 14%; animation-delay: 1.1s; }

@keyframes cardSlide {
  to { opacity: 1; transform: translateX(0); }
}

/* Diagonal bottom edge — angular cut */
.hero-edge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--marino);
  clip-path: polygon(0 100%, 100% 30%, 100% 100%);
  z-index: 2;
}

@media (min-width: 900px) {
  .hero-edge { background: var(--crema); }
}

/* ---- Hero content — staggered entrance ---- */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding-block: 80px 130px;
}

/* Show panel on desktop */
@media (min-width: 900px) {
  .hero-panel { display: block; }
  .hero-content { max-width: 550px; }
}

.hero-content > * {
  opacity: 0;
  transform: translateY(32px);
  animation: heroReveal 0.82s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.18s; }
.hero-content > *:nth-child(2) { animation-delay: 0.40s; }
.hero-content > *:nth-child(3) { animation-delay: 0.58s; }
.hero-content > *:nth-child(4) { animation-delay: 0.76s; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { display: none; }

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-headline span {
  color: var(--dorado);
  font-style: italic;
}

.hero-sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin-bottom: 52px;
  line-height: 1.78;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Trust signals below CTA */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.hero-trust li svg {
  color: var(--dorado);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.40;
  animation: scrollBounce 2.4s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
}

.hero-scroll-indicator svg { color: #fff; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.40; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 0.20; }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
#stats {
  background: var(--marino);
  padding-block: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hide on desktop — data shown as hero-panel cards */
@media (min-width: 900px) {
  #stats { display: none; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 20px 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease var(--delay, 0ms),
              transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) var(--delay, 0ms);
}

.stat-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%; bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.stat-number {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--dorado);
  line-height: 1;
  font-style: italic;
}

.stat-suffix {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   PROPUESTA DE VALOR
   ============================================================ */
#propuesta {
  background: var(--crema);
  padding-block: 100px;
  position: relative;
  overflow: hidden;
}

#propuesta .section-header {
  text-align: center;
  margin-bottom: 72px;
}

#propuesta .section-header p {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--gris-cuerpo);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.75;
}

.propuesta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.propuesta-card {
  background: var(--blanco-roto);
  border-radius: 14px;
  padding: 40px 34px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--dorado);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  position: relative;
  overflow: hidden;
}

.propuesta-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(0deg, var(--dorado-20), transparent);
  transition: height 0.35s ease;
}

.propuesta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 44px rgba(27, 42, 74, 0.14);
}

.propuesta-card:hover::after { height: 100%; }

.propuesta-card__icon {
  width: 52px;
  height: 52px;
  color: var(--dorado);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.propuesta-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--marino);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.propuesta-card__text {
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--gris-cuerpo);
  position: relative;
  z-index: 1;
}

/* ============================================================
   SERVICIOS — CÓMO TRABAJAMOS
   ============================================================ */
#servicios {
  background: var(--blanco-roto);
  padding-block: 100px;
}

#servicios .section-header {
  text-align: center;
  margin-bottom: 72px;
}

#servicios .section-header p {
  margin-top: 18px;
  font-size: 1.05rem;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.75;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.servicio-modulo {
  background: var(--blanco-roto);
  border-radius: 14px;
  padding: 40px 34px;
  border: 1px solid rgba(27, 42, 74, 0.09);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.servicio-modulo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.35s ease;
}

.servicio-modulo:hover {
  box-shadow: 0 8px 40px var(--dorado-20);
  transform: translateY(-4px);
  border-color: rgba(166, 124, 82, 0.20);
}

.servicio-modulo:hover::before {
  background: linear-gradient(90deg, transparent, var(--dorado), transparent);
}

.servicio-modulo__icon {
  width: 48px;
  height: 48px;
  color: var(--dorado);
  margin-bottom: 22px;
}

.servicio-modulo__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--dorado);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}

.servicio-modulo__list li {
  color: var(--gris-cuerpo);
  font-size: 0.93rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(27, 42, 74, 0.07);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition);
}

.servicio-modulo:hover .servicio-modulo__list li { color: var(--marino); }

.servicio-modulo__list li:last-child { border-bottom: none; }

.servicio-modulo__list li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--dorado);
  flex-shrink: 0;
}

/* ============================================================
   CIMA REVELA
   ============================================================ */
#revela {
  background: var(--marino);
  padding-block: 112px;
  position: relative;
  overflow: hidden;
}

#revela::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.05'%3E%3Cellipse cx='200' cy='200' rx='190' ry='80'/%3E%3Cellipse cx='200' cy='200' rx='140' ry='56'/%3E%3Cellipse cx='200' cy='200' rx='90' ry='36'/%3E%3Cellipse cx='200' cy='200' rx='50' ry='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  pointer-events: none;
  z-index: 0;
}

#revela::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166,124,82,0.07) 0%, transparent 70%);
  filter: blur(60px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.revela-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.revela-inner .section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--dorado);
  margin-bottom: 10px;
  font-style: italic;
}

.revela-tagline {
  font-weight: 300;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.revela-desc {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  max-width: 620px;
  margin-inline: auto;
  line-height: 1.82;
  margin-bottom: 72px;
}

.revela-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 60px;
}

.revela-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 36px 30px;
  text-align: left;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.revela-col:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(166, 124, 82, 0.32);
  transform: translateY(-4px);
}

.revela-col__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--dorado);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 14px;
  font-style: italic;
}

.revela-col__title {
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 14px;
}

.revela-col__text {
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.93rem;
  line-height: 1.78;
}

/* ============================================================
   PARA QUIÉN ES
   ============================================================ */
#para-quien {
  background: var(--crema);
  padding-block: 100px;
}

#para-quien .section-header {
  text-align: center;
  margin-bottom: 72px;
}

#para-quien .section-header p {
  margin-top: 18px;
  max-width: 480px;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

.perfiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.perfil-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--blanco-roto);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border-left: 3px solid transparent;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.perfil-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.13);
  border-left-color: var(--dorado);
}

.perfil-card__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--marino);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dorado);
  transition: background 0.35s ease, transform 0.35s ease;
}

.perfil-card:hover .perfil-card__icon {
  background: var(--marino-light);
  transform: scale(1.08);
}

.perfil-card__icon svg {
  width: 24px; height: 24px;
}

.perfil-card__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--marino);
  margin-bottom: 8px;
}

.perfil-card__desc {
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--gris-cuerpo);
}

/* ============================================================
   FORMULARIO
   ============================================================ */
/* #contacto now lives inside the hero, no standalone section styles needed */

.form-wrapper {
  max-width: 500px;
  margin-inline: auto;
}

.form-wrapper .section-title { margin-bottom: 10px; }

.form-wrapper .form-sub {
  font-size: 1rem;
  color: var(--gris-cuerpo);
  margin-bottom: 44px;
  line-height: 1.75;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--marino);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--marino);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* Override for inputs inside hero form card (dark bg) */
.hero-form-card .form-group label {
  display: none; /* placeholders are enough in the compact card */
}

.hero-form-card .form-group input[type="text"],
.hero-form-card .form-group input[type="tel"] {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  color: #fff !important;
  padding: 14px 16px;
  font-size: 0.92rem;
}

.hero-form-card .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.50) !important;
}

.hero-form-card .form-select {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  padding: 14px 16px;
  font-size: 0.92rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B8924A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 42px;
}

.hero-form-card .form-select option {
  background: var(--marino);
  color: #fff;
}

.hero-form-card .form-group input:focus,
.hero-form-card .form-select:focus {
  border-color: var(--dorado) !important;
  box-shadow: 0 0 0 3px var(--dorado-20) !important;
  outline: none;
}

.hero-form-card .checkbox-group label {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.72rem;
}

.hero-form-card .contact-form {
  gap: 14px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A67C52' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
  color: var(--marino);
}

.form-select option[value=""] { color: #999; }

.form-optional {
  font-weight: 400;
  font-size: 0.76rem;
  color: #999;
  letter-spacing: 0;
}

.form-group input:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 0 4px var(--dorado-20);
}

.form-group input.error-input { border-color: var(--error-rojo); }

.field-error {
  font-size: 13px;
  color: var(--error-rojo);
  min-height: 18px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  min-width: 18px;
  accent-color: var(--dorado);
  cursor: pointer;
  margin-top: 2px;
}

.checkbox-group label {
  font-size: 0.87rem;
  color: var(--gris-cuerpo);
  cursor: pointer;
  line-height: 1.55;
}

.checkbox-error {
  font-size: 13px;
  color: var(--error-rojo);
  margin-top: 4px;
  min-height: 18px;
}

#submit-btn {
  margin-top: 8px;
  padding: 16px 28px;
  font-size: 0.93rem;
  letter-spacing: 0.07em;
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  text-align: center;
  padding: 56px 24px;
}

.form-success__icon {
  width: 72px; height: 72px;
  background: var(--dorado-20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 28px;
  color: var(--dorado);
  animation: successPop 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes successPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.form-success__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--marino);
  margin-bottom: 14px;
}

.form-success__text {
  color: var(--gris-cuerpo);
  line-height: 1.72;
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--marino);
  padding-block: 64px 40px;
  position: relative;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: min(400px, 55vw);
  color: rgba(184, 146, 74, 0.06);
  pointer-events: none;
  z-index: 0;
}

.footer-watermark svg {
  width: 100%;
  height: 100%;
}

.footer-top,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a,
.footer-contact p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-contact a:hover { color: var(--dorado); }

.footer-contact__label {
  font-size: 0.68rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--dorado);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
}

/* Footer nav links */
.footer-nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  transition: color 0.25s ease;
}

.footer-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1px;
  background: var(--dorado);
  transition: width 0.3s ease;
}

.footer-nav-link:hover {
  color: var(--dorado);
}

.footer-nav-link:hover::after {
  width: 100%;
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (min-width: 480px) {
  .propuesta-grid { grid-template-columns: 1fr 1fr; }
  .perfiles-grid  { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (min-width: 768px) {
  .propuesta-grid { grid-template-columns: repeat(3, 1fr); }
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
  .perfiles-grid  { grid-template-columns: repeat(3, 1fr); }
  .revela-cols    { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .hero-content { padding-block: 100px 140px; }
}

/* ============================================================
   MOBILE-SPECIFIC
   ============================================================ */
@media (max-width: 479px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }

  .header-cta {
    font-size: 0.7rem;
    padding: 7px 12px;
    letter-spacing: 0.02em;
  }

  .form-wrapper   { padding-inline: 0; }
  #contacto       { padding-inline: 24px; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-item:not(:last-child)::after { display: none; }
}
