/* =============================================================
   Arrache Asesores — estilos
   Paleta: rojo institucional / grises / blanco (inspiración NYL)
   ============================================================= */

:root {
  --blue: #003087;
  --blue-dark: #001F5C;
  --blue-soft: #E8EDF6;
  --ink: #16181D;
  --slate: #3A3F4A;
  --muted: #6B7280;
  --line: #E7E7E3;
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --gold: #B98A2E;
  --shadow-sm: 0 1px 3px rgba(20, 22, 28, .08);
  --shadow-md: 0 8px 24px rgba(20, 22, 28, .10);
  --shadow-lg: 0 20px 50px rgba(20, 22, 28, .16);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1140px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 800; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section.alt { background: var(--white); }
.section.ink { background: var(--ink); color: #EDEDEA; }
.section.ink h1, .section.ink h2, .section.ink h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .8rem;
}
.section.ink .eyebrow { color: #7FA8E0; }

.lead { font-size: 1.18rem; color: var(--slate); max-width: 60ch; }
.section.ink .lead { color: #C9CBD1; }

.text-center { text-align: center; }
.center-wrap { max-width: 720px; margin: 0 auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px;
  background: var(--blue); color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.brand-text { font-size: 1.18rem; }
.brand-text strong { color: var(--blue); font-weight: 800; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--slate); font-weight: 600; font-size: .97rem; padding: 9px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: #f1f1ee; text-decoration: none; }
.site-nav a.active { color: var(--blue); }
.nav-cta { color: #fff !important; margin-left: 8px; }
.nav-cta:hover { color: #fff !important; background: var(--blue-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #fff 0%, var(--bg) 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 84px 0 76px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--blue); }

.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 30px;
}
.hero-card .kicker { color: var(--blue); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-card h3 { font-size: 1.4rem; margin: 8px 0 14px; }
.hero-stat { display: flex; align-items: baseline; gap: 8px; padding: 12px 0; border-top: 1px dashed var(--line); }
.hero-stat b { font-size: 1.7rem; color: var(--blue); }
.hero-photo {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); background:
    linear-gradient(135deg, rgba(0,48,135,.08), rgba(22,24,29,.06)),
    repeating-linear-gradient(45deg, #efefec 0 12px, #f6f6f3 12px 24px);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted);
  font-size: .9rem; text-align: center; padding: 20px;
}

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--slate); margin-bottom: 0; font-size: .98rem; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

.card.feature { position: relative; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); background: #FBF4E4; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.card ul.check { list-style: none; padding: 0; margin: 14px 0 0; }
.card ul.check li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--slate); font-size: .96rem; }
.card ul.check li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .lead { margin: 0 auto; }

/* ---------- Franja de confianza ---------- */
.trust-bar { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-bar .container { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: center; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.trust-item { text-align: center; }
.trust-item b { display: block; font-size: 2rem; color: var(--blue); }
.trust-item span { color: var(--muted); font-size: .9rem; }

/* ---------- CTA banda ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--blue-dark)); color: #fff; border-radius: var(--radius-lg); padding: 52px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D6E3F5; max-width: 55ch; margin: 0 auto 26px; }

/* ---------- Bio / Nosotros ---------- */
.bio { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.bio .photo {
  aspect-ratio: 3/4; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, rgba(0,48,135,.10), rgba(22,24,29,.06)),
    repeating-linear-gradient(45deg, #efefec 0 14px, #f6f6f3 14px 28px);
  display: grid; place-items: center; color: var(--muted); text-align: center;
  overflow: hidden;
}
.bio .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.bio .role { color: var(--blue); font-weight: 700; margin-bottom: .3rem; }

/* ---------- Simulador ---------- */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.sim-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 30px; }
.sim-result { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 30px; position: sticky; top: 90px; }
.sim-result h3 { color: #fff; }
.result-figure { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: -.02em; margin: 6px 0; }
.result-figure small { font-size: 1rem; color: #B9BCC4; font-weight: 600; }
.result-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); color: #D6D8DE; }
.result-row b { color: #fff; }
.reco { margin-top: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 18px; }
.reco .name { color: #93B4E6; font-weight: 800; font-size: 1.1rem; }
.range-out { font-weight: 700; color: var(--blue); }

/* ---------- Formularios ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--slate); }
.field .req { color: var(--blue); }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
input[type="range"] { padding: 0; }
textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.check-item { display: flex; align-items: center; gap: 9px; font-size: .95rem; color: var(--slate); font-weight: 500; }
.check-item input { width: auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.consent input { width: auto; margin-top: 4px; }

.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-note { font-size: .85rem; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: 11px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.form-status.show { display: block; }
.form-status.ok { background: #E9F7EE; color: #1B7A3D; border: 1px solid #B7E4C7; }
.form-status.err { background: #FDECEC; color: #B42318; border: 1px solid #F5C2C0; }

.card-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 32px; position: relative; }

/* Opción rápida: agendar por Calendly sin llenar el formulario */
.quick-book {
  background: var(--blue-soft); border: 1px solid #D3DEF0; border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px;
}
.quick-book strong { color: var(--ink); font-size: 1.02rem; }
.quick-book .form-note { margin: 2px 0 0; }
.btn-calendly { background: var(--blue); color: #fff; }
.btn-calendly:hover { background: var(--blue-dark); color: #fff; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm svg { width: 16px; height: 16px; }

.or-divider { display: flex; align-items: center; text-align: center; color: var(--muted); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; margin: 20px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or-divider span { padding: 0 12px; }

/* ---------- Info product list ---------- */
.disclaimer-box {
  background: #fff; border: 1px dashed var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 16px 18px; color: var(--muted); font-size: .88rem; margin-top: 20px;
}

/* ---------- Landing (cita) ---------- */
.landing { min-height: 100vh; background:
  radial-gradient(900px 500px at 15% -10%, rgba(0,48,135,.14), transparent 60%),
  linear-gradient(180deg, var(--ink), #0d0f13); color: #EDEDEA; }
.landing-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 46px 0 60px; }
.landing h1 { color: #fff; }
.landing .lead { color: #C9CBD1; }
.landing .brand-text, .landing .brand-text strong { color: #fff; }
.landing-list { list-style: none; padding: 0; margin: 24px 0 0; }
.landing-list li { position: relative; padding-left: 32px; margin-bottom: 14px; color: #D6D8DE; }
.landing-list li svg { position: absolute; left: 0; top: 3px; color: #7FA8E0; }
.landing-mini-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.landing-badges { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.landing-badge { font-size: .82rem; color: #B9BCC4; border: 1px solid rgba(255,255,255,.18); padding: 7px 12px; border-radius: 999px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 66px 0 40px; background: radial-gradient(1000px 400px at 80% -30%, #fff, var(--bg)); }
.page-hero .lead { margin-top: 8px; }

.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CBD1; padding: 60px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .brand-text, .footer-brand .brand-text strong { color: #fff; }
.footer-desc { color: #9CA0A9; font-size: .95rem; max-width: 34ch; margin-top: 14px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #B9BCC4; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; }
.footer-bottom p { font-size: .82rem; color: #8A8E97; margin-bottom: 8px; }
.footer-bottom .disclaimer { font-size: .76rem; color: #71757E; max-width: 90ch; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200; width: 58px; height: 58px;
  background: #25D366; color: #fff; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.08); text-decoration: none; }

/* ---------- Prose (aviso privacidad) ---------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; color: var(--slate); }
.prose li { margin-bottom: .5em; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.2rem; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner, .bio, .sim, .landing-inner { grid-template-columns: 1fr; }
  .hero-photo, .hero-card { max-width: 460px; }
  .sim-result { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bio .photo { max-width: 360px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .28s ease; visibility: hidden;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav a { padding: 13px 12px; }
  .nav-cta { text-align: center; margin: 8px 0 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row, .checks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 36px 22px; }
  .card-form, .sim-panel { padding: 22px; }
}
