/* ═══════════════════════════════════════════════
   MAXIMILIANO LOBOS — ABOGADO — Stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --navy:       #0b1622;
  --navy-l:     #132a44;
  --navy-xl:    #1a3a5c;
  --wine:       #6e2330;
  --wine-l:     #8a2e3d;
  --gold:       #b6883e;
  --gold-l:     #d4ac6a;
  --sand:       #f4f1ea;
  --sand-l:     #faf8f4;
  --white:      #ffffff;
  --text:       #14181f;
  --text-b:     #3a4048;
  --muted:      #6b7280;
  --green-wa:   #25d366;
  --green-wa-d: #1da851;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.10);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.16);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.35);
  --r:          12px;
  --r-sm:       8px;
  --r-lg:       20px;
  --tr:         .3s ease;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--navy); margin-bottom: .6rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  padding: 14px 28px; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  transition: var(--tr); white-space: nowrap;
}
.btn-primary:hover { background: var(--gold-l); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ─── SECTION HEADER ─── */
.s-header { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.s-header p { color: var(--text-b); font-size: 1.05rem; margin-top: .5rem; }
.ia-more-btn { margin-top: 24px; }
.s-header.light h2, .s-header.light .s-tag { color: var(--white); }
.s-header.light p { color: rgba(255,255,255,.8); }
.s-tag {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); background: rgba(182,136,62,.12);
  padding: 4px 14px; border-radius: 50px; margin-bottom: 12px;
  border: 1px solid rgba(182,136,62,.3);
}
.s-header.light .s-tag { color: var(--gold-l); background: rgba(182,136,62,.15); border-color: rgba(182,136,62,.4); }

/* ─── FADE-IN ANIMATION ─── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  background: transparent;
  transition: background var(--tr), padding var(--tr), box-shadow var(--tr);
}
#navbar.scrolled {
  background: rgba(11,22,34,.97);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
}
.nav-container {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; flex-direction: column; gap: 0; }
.logo-main {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--white); letter-spacing: .01em; line-height: 1;
}
.logo-sub {
  font-size: .68rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); line-height: 1.5;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: var(--tr);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 600 !important; border-radius: 50px !important;
  padding: 9px 20px !important;
}
.nav-cta:hover { background: var(--gold-l) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--tr);
}

/* ═══════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 140px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,22,34,.92) 30%, rgba(11,22,34,.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; align-items: center;
  animation: heroIn .9s ease both;
}
@keyframes heroIn { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }

.hero-text { color: var(--white); }
.hero-eyebrow {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-l); margin-bottom: 20px;
  background: rgba(255,255,255,.08); padding: 6px 18px; border-radius: 50px;
  border: 1px solid rgba(182,136,62,.35);
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700;
  line-height: 1.12; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-title em { font-style: italic; color: var(--gold-l); }
.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.85);
  margin-bottom: 28px; font-weight: 300; max-width: 520px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(11,22,34,.5); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r); padding: 16px 20px;
  flex-wrap: nowrap;
}
.hstat { text-align: left; padding: 4px 18px; }
.hstat strong { display: block; font-size: 1.25rem; font-weight: 700; color: var(--gold-l); font-family: 'Playfair Display', serif; }
.hstat span { font-size: .72rem; color: rgba(255,255,255,.65); letter-spacing: .04em; text-transform: uppercase; }
.hstat-div { width: 1px; height: 34px; background: rgba(255,255,255,.2); }

.hero-portrait { position: relative; display: flex; justify-content: center; }
.portrait-ring {
  position: relative;
  width: 100%; max-width: 425px; aspect-ratio: 4/5;
  border-radius: var(--r-lg); overflow: hidden;
  border: 3px solid rgba(182,136,62,.5);
  box-shadow: var(--shadow-xl);
}
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: 1.2rem;
  animation: bounce 2s infinite; z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ═══════════════════════════════════════════
   TRUST BAR
════════════════════════════════════════════ */
.trust-bar {
  background: var(--navy-l); color: rgba(255,255,255,.9);
  padding: 16px 24px; display: flex; align-items: center;
  justify-content: center; gap: 40px; flex-wrap: wrap;
  font-size: .85rem; font-weight: 500;
  border-bottom: 1px solid rgba(182,136,62,.25);
}
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-item i { color: var(--gold-l); }

/* ═══════════════════════════════════════════
   ESPECIALIDADES
════════════════════════════════════════════ */
.s-benef { padding: 100px 0; background: var(--sand-l); }
.benef-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-bottom: 48px;
}
.benef-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 36px 30px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
  transition: var(--tr);
}
.benef-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.benef-highlight { background: var(--navy); }
.benef-highlight h3, .benef-highlight p { color: var(--white); }
.benef-highlight .benef-icon { background: rgba(255,255,255,.1); color: var(--gold-l); }
.benef-icon {
  width: 58px; height: 58px; border-radius: 16px;
  background: rgba(182,136,62,.1); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
  transition: var(--tr);
}
.benef-card:hover .benef-icon:not(.benef-highlight .benef-icon) { background: var(--gold); color: #fff; }
.benef-card p { color: var(--muted); font-size: .92rem; }
.benef-highlight p { color: rgba(255,255,255,.75); }
.benef-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; color: var(--gold-l); font-size: .85rem; font-weight: 600;
}
.benef-link:hover { color: var(--white); }

/* Financiamiento / modalidad strip */
.fin-strip {
  background: var(--navy); border-radius: var(--r-lg);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.fin-item {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 32px; color: var(--white);
}
.fin-item i { font-size: 1.6rem; color: var(--gold); }
.fin-item strong { display: block; font-size: 1rem; }
.fin-item span { font-size: .82rem; color: rgba(255,255,255,.6); }
.fin-sep { width: 1px; height: 52px; background: rgba(255,255,255,.15); }

/* ═══════════════════════════════════════════
   METODOLOGÍA
════════════════════════════════════════════ */
.s-metodo { padding: 100px 0; background: var(--white); }
.proceso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.proceso-card {
  position: relative;
  background: var(--sand-l); border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--r-lg); padding: 32px 26px;
  transition: var(--tr);
}
.proceso-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.proceso-num {
  position: absolute; top: 18px; right: 22px;
  font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700;
  color: rgba(182,136,62,.18);
}
.proceso-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--navy); color: var(--gold-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 18px;
}
.proceso-card p { color: var(--muted); font-size: .9rem; }

/* ═══════════════════════════════════════════
   SOBRE MÍ
════════════════════════════════════════════ */
.s-sobre { padding: 100px 0; background: var(--sand-l); }
.sobre-wrap {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: 64px; align-items: center;
}
.sobre-media {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
}
.sobre-media img { width: 100%; height: 100%; object-fit: cover; }
.sobre-body h2 { margin-bottom: 14px; }
.sobre-lead { font-size: 1.1rem; color: var(--navy); font-weight: 500; margin-bottom: 14px; }
.sobre-body p { color: var(--text-b); margin-bottom: 18px; font-size: 1rem; line-height: 1.75; }
.sobre-list { margin: 24px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.sobre-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text-b); }
.sobre-list i { color: var(--gold); }

/* ═══════════════════════════════════════════
   CONSULTORÍA IA
════════════════════════════════════════════ */
.s-ia { position: relative; padding: 100px 0; background: var(--navy); overflow: hidden; }
.ia-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .9; }
.s-ia .container { position: relative; z-index: 1; }
.ia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; margin-bottom: 44px;
}
.ia-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(182,136,62,.25);
  border-radius: var(--r-lg); padding: 32px 26px;
  backdrop-filter: blur(6px); transition: var(--tr);
}
.ia-card:hover { transform: translateY(-6px); border-color: var(--gold); background: rgba(255,255,255,.08); }
.ia-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--navy); margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(182,136,62,.35);
}
.ia-card h3 { color: var(--white); }
.ia-card p { color: rgba(255,255,255,.7); font-size: .92rem; }
.ia-cta { text-align: center; }

.ia-subhead { text-align: center; max-width: 560px; margin: 64px auto 44px; }
.ia-subhead-line { display: block; width: 60px; height: 2px; background: var(--gold); margin: 0 auto 20px; }
.ia-subhead h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--white); margin-bottom: 8px; }
.ia-subhead p { color: rgba(255,255,255,.7); font-size: .95rem; }

/* ═══════════════════════════════════════════
   TESTIMONIOS
════════════════════════════════════════════ */
.s-testi { padding: 100px 0; background: var(--white); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testi-card {
  background: var(--sand-l); border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--r-lg); padding: 32px 28px;
  transition: var(--tr);
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testi-stars { color: var(--gold); font-size: .85rem; margin-bottom: 14px; display: flex; gap: 3px; }
.testi-card p { color: var(--text-b); font-size: .95rem; font-style: italic; margin-bottom: 22px; line-height: 1.7; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--gold-l);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.testi-author strong { display: block; font-size: .88rem; color: var(--navy); }
.testi-author span { font-size: .78rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   FAQ
════════════════════════════════════════════ */
.s-faq { padding: 100px 0; background: var(--sand-l); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--r); overflow: hidden; transition: var(--tr);
}
.faq-item:hover { border-color: var(--gold); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; background: none; border: none;
  cursor: pointer; text-align: left; font-size: 1rem; font-weight: 600; color: var(--navy);
}
.faq-q i { color: var(--gold); transition: transform var(--tr); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 24px 20px; color: var(--text-b); font-size: .92rem; line-height: 1.7; }

/* ═══════════════════════════════════════════
   MODALIDAD / UBICACIÓN
════════════════════════════════════════════ */
.s-ubicacion { padding: 100px 0; background: var(--navy); }
.ubic-wrap {
  display: grid; grid-template-columns: auto 1fr;
  gap: 40px; align-items: start;
}
.ubic-map { display: flex; }
.ubic-map img { width: auto; height: auto; max-width: 100%; max-height: 380px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.ubic-info { display: flex; flex-direction: column; gap: 24px; }
.ubic-item { display: flex; gap: 16px; align-items: flex-start; }
.ubic-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(255,255,255,.08); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem;
}
.ubic-item strong { display: block; color: var(--white); font-size: .95rem; margin-bottom: 2px; }
.ubic-item span { font-size: .85rem; color: rgba(255,255,255,.6); }
.btn-directions {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: .9rem;
  transition: var(--tr); align-self: flex-start;
}
.btn-directions:hover { background: var(--gold-l); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   AGENDAR / CONTACTO
════════════════════════════════════════════ */
.s-cotizar { padding: 100px 0; background: var(--sand-l); }
.cotizar-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: start;
}
.cotizar-info h2 { margin-bottom: 14px; }
.cotizar-info p { color: var(--text-b); margin-bottom: 32px; font-size: 1.02rem; }
.cotizar-payment-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(182,136,62,.08); border: 1px solid rgba(182,136,62,.3);
  border-radius: var(--r); padding: 14px 18px;
  margin-top: -16px !important; margin-bottom: 32px !important;
  font-size: .9rem !important; color: var(--text-b);
}
.cotizar-payment-note i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.clist-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: var(--r);
  padding: 16px 20px; border: 1px solid rgba(0,0,0,.07);
  box-shadow: var(--shadow-sm); transition: var(--tr);
}
.clist-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.clist-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: #fff;
}
.clist-icon.phone { background: var(--navy); }
.clist-icon.mail { background: var(--gold); }
.clist-item strong { display: block; font-size: .9rem; color: var(--navy); }
.clist-item span { font-size: .82rem; color: var(--muted); }

/* Form */
.cotizar-form-box {
  background: var(--white); border-radius: var(--r-lg);
  padding: 40px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,.06);
}
.fg { margin-bottom: 18px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg label { display: block; font-size: .83rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #e5e7eb; border-radius: var(--r-sm);
  font-family: 'Inter', sans-serif; font-size: .92rem; color: var(--text);
  background: #fafafa; transition: var(--tr);
  outline: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(182,136,62,.12);
}
.fg textarea { resize: vertical; min-height: 90px; }
.fg-check { display: flex !important; flex-direction: row; align-items: flex-start; gap: 10px; }
.fg-check input { width: auto !important; accent-color: var(--gold); margin-top: 3px; }
.fg-check label { margin: 0; font-weight: 400; font-size: .87rem; }
.btn-submit {
  width: 100%; padding: 15px; background: var(--navy); color: #fff;
  border: none; border-radius: 50px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: var(--tr);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--wine); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.form-privacy { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.form-privacy i { color: var(--gold); }
.form-success { text-align: center; padding: 40px 20px; }
.form-success i { font-size: 3rem; color: var(--green-wa); margin-bottom: 16px; }
.form-success h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--text-b); margin-bottom: 24px; }

/* ═══════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer { background: #060d15; color: rgba(255,255,255,.75); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.4fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .footer-logo { margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social-tag { font-size: .82rem; color: rgba(255,255,255,.55); margin: -12px 0 14px !important; }
.footer-social { display: flex; gap: 10px; }
.footer-cta { margin-top: 24px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: var(--tr);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-legal-subhead { margin-top: 20px !important; }
.footer-nav h4, .footer-contact h4, .footer-legal-col h4 {
  color: var(--white); font-size: .9rem; font-weight: 600;
  margin-bottom: 16px; font-family: 'Inter', sans-serif;
  text-transform: uppercase; letter-spacing: .08em;
}
.footer-nav ul li { margin-bottom: 8px; }
.footer-nav ul li a { font-size: .88rem; transition: var(--tr); }
.footer-nav ul li a:hover { color: var(--gold-l); padding-left: 4px; }
.footer-contact p { font-size: .88rem; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--gold); margin-top: 2px; min-width: 14px; }
.footer-contact a:hover { color: var(--gold-l); }
.footer-disclaimer { font-size: .8rem; line-height: 1.7; color: rgba(255,255,255,.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; text-align: center;
  font-size: .8rem; color: rgba(255,255,255,.35);
}

/* ═══════════════════════════════════════════
   MODAL ÉXITO
════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-box {
  background: #fff; border-radius: var(--r-lg);
  padding: 48px 40px; text-align: center;
  max-width: 420px; width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from{opacity:0;transform:scale(.9)} to{opacity:1;transform:scale(1)} }
.modal-box i.fa-check-circle { font-size: 3.5rem; color: var(--green-wa); margin-bottom: 16px; display: block; }
.modal-box h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: 10px; }
.modal-box p { color: var(--text-b); margin-bottom: 24px; line-height: 1.6; }
.modal-close {
  display: block; width: 100%; padding: 11px;
  background: none; border: 1.5px solid #e5e7eb;
  border-radius: 50px; color: var(--muted);
  font-size: .9rem; cursor: pointer; transition: var(--tr);
}
.modal-close:hover { border-color: var(--navy); color: var(--navy); }

/* ═══════════════════════════════════════════
   PÁGINA CONSULTORÍA IA
════════════════════════════════════════════ */
.ia-page-hero { position: relative; padding: 160px 0 90px; overflow: hidden; background: var(--navy); text-align: center; color: var(--white); }
.ia-page-hero .ia-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.ia-page-hero .container { position: relative; z-index: 1; max-width: 800px; }
.ia-page-hero .hero-desc { margin-left: auto; margin-right: auto; }
.ia-page-hero .hero-btns { justify-content: center; margin-bottom: 20px; }
.ia-back-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: .9rem; transition: var(--tr); }
.ia-back-link:hover { color: var(--gold-l); }

.ia-final-cta { padding: 90px 0; background: var(--sand-l); text-align: center; }
.ia-final-cta h2 { margin-bottom: 10px; }
.ia-final-cta p { color: var(--text-b); font-size: 1.05rem; margin-bottom: 28px; }

/* ═══════════════════════════════════════════
   LIBROS TEASER (index)
════════════════════════════════════════════ */
.s-libros-teaser { padding: 90px 0; background: var(--white); text-align: center; }
.libros-teaser-covers {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 28px; margin: 8px 0 40px;
}
.libros-teaser-covers img {
  width: 150px; border-radius: 6px;
  box-shadow: var(--shadow-md); opacity: .92;
  transition: var(--tr);
}
.libros-teaser-covers img:nth-child(1) { transform: rotate(-3deg); }
.libros-teaser-covers img:nth-child(2) { transform: rotate(3deg); }
.libros-teaser-covers img:hover { opacity: 1; transform: rotate(0) translateY(-4px); }
.libros-teaser-cta { text-align: center; }

/* ═══════════════════════════════════════════
   PÁGINA LIBROS
════════════════════════════════════════════ */
.libros-page-hero { position: relative; padding: 150px 0 70px; background: var(--navy); text-align: center; color: var(--white); }
.libros-page-hero .hero-desc { margin: 0 auto; max-width: 640px; }
.libros-author-avatar {
  width: 108px; height: 108px; margin: 0 auto 22px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(182,136,62,.6);
  box-shadow: var(--shadow-lg);
}
.libros-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.s-libros { padding: 80px 0; background: var(--sand-l); }
.s-libros:nth-of-type(even) { background: var(--white); }
.libro-card {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center;
  background: var(--white); border: 1px solid rgba(0,0,0,.06); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 48px; margin-bottom: 56px;
}
.libro-card:last-child { margin-bottom: 0; }
.libro-cover { border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-lg); }
.libro-cover img { width: 100%; display: block; }
.libro-info .s-tag { margin-bottom: 14px; }
.libro-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.libro-desc { color: var(--text-b); font-size: 1.05rem; line-height: 1.7; margin-bottom: 24px; }
.libro-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.libro-price { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.libro-price-note { font-size: .85rem; color: var(--muted); }
.libro-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-primary.is-disabled { background: #e5e7eb; color: var(--muted); pointer-events: none; }
.libro-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; }
.libro-trust span { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); }
.libro-trust i { color: var(--gold); }
.libro-share { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid rgba(0,0,0,.07); }
.libro-share img { width: 84px; height: auto; border-radius: 8px; box-shadow: var(--shadow-sm); }
.libro-share-text strong { display: block; font-size: .88rem; color: var(--navy); }
.libro-share-text span { font-size: .8rem; color: var(--muted); }
.libro-share-social { display: flex; gap: 8px; margin-top: 10px; }
.libro-share-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: var(--tr);
}
.libro-share-social a:hover { background: var(--gold); color: var(--navy); }

.libros-faq-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }

.s-pregunta { padding: 80px 0; background: var(--white); }
.pregunta-box {
  max-width: 480px; margin: 0 auto; background: var(--sand-l);
  border: 1px solid rgba(0,0,0,.06); border-radius: var(--r-lg);
  padding: 36px 32px; box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .libro-card { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .libro-cover { max-width: 320px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════
   PÁGINAS DE DESCARGA (privadas, noindex)
════════════════════════════════════════════ */
.descarga-page { min-height: 100vh; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.descarga-box { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-xl); max-width: 460px; width: 100%; padding: 44px 36px; text-align: center; }
.descarga-cover { width: 140px; margin: 0 auto 20px; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-md); }
.descarga-cover img { width: 100%; display: block; }
.descarga-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0;
  padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600;
  margin-bottom: 16px;
}
.descarga-box h1 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.descarga-price { font-size: .95rem; color: var(--text-b); margin-bottom: 26px; }
.descarga-price strong { color: var(--navy); }
.btn-descarga {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--navy); color: #fff; padding: 16px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; transition: var(--tr); margin-bottom: 16px;
}
.btn-descarga:hover { background: var(--gold); color: var(--navy); }
.descarga-note { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.descarga-back { display: inline-block; margin-top: 22px; font-size: .85rem; color: var(--muted); }
.descarga-back:hover { color: var(--gold); }

/* ═══════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ubic-wrap { grid-template-columns: 1fr; }
  .cotizar-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 640px; margin: 0 auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-portrait { order: -1; margin-bottom: 20px; }
  .portrait-ring { max-width: 260px; }
  .sobre-wrap { grid-template-columns: 1fr; }
  .sobre-media { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 75vw; max-width: 300px;
    height: 100vh; background: var(--navy);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 80px 24px 40px; transition: right var(--tr);
    box-shadow: -4px 0 40px rgba(0,0,0,.3); z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { width: 100%; padding: 12px 16px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-cta { width: 100%; text-align: center; }
  .nav-toggle { display: flex; z-index: 1000; }

  /* Hero */
  .hstat-div { display: none; }
  .hero-stats { gap: 10px; justify-content: center; flex-wrap: wrap; }
  .hstat { text-align: center; }
  .hero-btns { flex-direction: column; align-items: center; }

  /* Trust bar */
  .trust-bar { gap: 18px; font-size: .78rem; }

  /* Form */
  .fg-row { grid-template-columns: 1fr; }
  .cotizar-form-box { padding: 28px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Fin strip */
  .fin-strip { flex-direction: column; padding: 28px 20px; gap: 16px; }
  .fin-sep { width: 80%; height: 1px; }
}

@media (max-width: 480px) {
  .hero-badge { flex-direction: column; gap: 4px; }
}
