/* ===========================================================
   Estrella Concha Pacheco — Abogada
   base.css · Borgoña & Marfil (dorado protagonista)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Paleta · Rubí (rojo cálido) & Ámbar (dorado brillante) */
  --wine:        #962236;
  --wine-700:    #771A2C;
  --wine-900:    #50111E;
  --ivory:       #FBF5EC;
  --ivory-200:   #F2E8D8;
  --card:        #FFFFFF;
  --gold:        #E6AC18;
  --gold-ink:    #9C7410;   /* ámbar legible para texto pequeño sobre claro */
  --gold-soft:   #F2D279;
  --blush:       #E9C9BC;
  --blush-soft:  #F3E0D5;

  --tx:          #221A1B;
  --tx-soft:     #4D4140;
  --onwine:      #FAEFE9;
  --onwine-soft: #EED4CA;

  /* WhatsApp · verde reconocible */
  --wa:          #1FAB54;
  --wa-700:      #17853F;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --r-sm: 7px;
  --r-md: 14px;
  --r-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(58,22,32,.06), 0 6px 20px rgba(58,22,32,.06);
  --shadow-md: 0 12px 38px rgba(58,22,32,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--tx); background: var(--ivory);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

/* layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 9vw, 116px); }
.eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content:""; width: 26px; height: 1.5px; background: var(--gold); display:inline-block; }
.eyebrow.center-eb { justify-content: center; }
.eyebrow.on-wine { color: var(--gold-soft); }
.eyebrow.on-wine::before { background: var(--gold-soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease; white-space: nowrap; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--wine); color: var(--onwine); }
.btn-primary:hover { background: var(--wine-700); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-700); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #5a4208; }
.btn-gold:hover { background: #cf990f; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--wine); border-color: var(--gold); }
.btn-ghost:hover { background: rgba(193,154,91,.12); border-color: var(--gold-ink); }
.btn-onwine { background: var(--ivory); color: var(--wine); }
.btn-onwine:hover { background: #fff; transform: translateY(-2px); }
.btn-onwine-ghost { background: transparent; color: var(--onwine); border-color: var(--gold-soft); }
.btn-onwine-ghost:hover { border-color: var(--gold); background: rgba(216,190,145,.14); }

.link-gold { color: var(--wine); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.link-gold .arr { color: var(--gold-ink); transition: transform .2s ease; }
.link-gold:hover .arr { transform: translateX(4px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ivory) 90%, transparent);
  backdrop-filter: blur(10px); border-top: 3px solid var(--gold); border-bottom: 1px solid rgba(110,43,58,.12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: none; }
.brand-name { font-family: var(--serif); font-size: 19px; line-height: 1.05; color: var(--wine); }
.brand-name small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); margin-top: 3px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--tx-soft); transition: color .18s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--wine); }
.nav-links a.active::after { content:""; position:absolute; left:0; right:0; bottom:-26px; height:2px; background: var(--gold); }

/* dropdown for áreas */
.has-drop { position: relative; }
.drop { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--card); border: 1px solid rgba(110,43,58,.12); border-top: 2px solid var(--gold);
  border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 10px; min-width: 268px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; }
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: block; padding: 11px 14px; border-radius: 8px; font-size: 14.5px; color: var(--tx); }
.drop a small { display:block; font-size: 12px; color: var(--tx-soft); margin-top: 1px; font-weight: 400; }
.drop a:hover { background: var(--ivory-200); color: var(--wine); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--wine); }

.mobile-menu { display: none; }
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-burger { display: block; }
  .mobile-menu { display: block; max-height: 0; overflow: hidden; transition: max-height .35s ease; background: var(--card); border-bottom: 1px solid rgba(110,43,58,.12); }
  .mobile-menu.open { max-height: 560px; }
  .mobile-menu ul { padding: 10px var(--gut) 26px; }
  .mobile-menu a { display: block; padding: 13px 0; font-size: 17px; font-weight: 500; color: var(--wine); border-bottom: 1px solid rgba(110,43,58,.08); }
  .mobile-menu a.sub { padding-left: 16px; font-size: 15px; color: var(--tx-soft); }
  .mobile-menu .btn { margin-top: 18px; width: 100%; justify-content: center; }
}

/* page hero (interior pages) */
.page-hero { background: var(--wine); color: var(--onwine); position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(110% 90% at 88% 0%, rgba(193,154,91,.20), transparent 55%); pointer-events:none; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(40px,6vw,76px); }
.breadcrumb { font-size: 13px; color: var(--onwine-soft); display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { color: var(--gold-soft); }
.page-hero h1 { font-size: clamp(34px,5.4vw,60px); color: var(--ivory); max-width: 20ch; }
.page-hero h1 em { font-style: italic; color: var(--gold-soft); }
.page-hero .lead { color: var(--onwine-soft); margin-top: 20px; max-width: 54ch; font-size: clamp(17px,2vw,20px); }

/* footer */
.footer { background: var(--wine-900); color: var(--onwine); padding-block: clamp(48px,7vw,76px) 36px; border-top: 3px solid var(--gold); }
.footer a { color: var(--onwine-soft); transition: color .18s ease; }
.footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 40px; }
.footer h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; font-weight: 600; }
.footer .brand-name { color: var(--ivory); }
.footer ul li { margin-bottom: 11px; font-size: 15px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(224,199,189,.16); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--onwine-soft); }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* whatsapp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 11px;
  background: var(--wa); color: #fff; padding: 13px 20px 13px 16px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px rgba(20,80,40,.34);
  border: 1.5px solid rgba(255,255,255,.5); transition: transform .2s ease, background .2s ease; }
.wa-float:hover { transform: translateY(-2px); background: var(--wa-700); }
.wa-float svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 620px){
  .wa-float { left: 12px; right: 12px; bottom: 12px; justify-content: center; padding: 16px; border-radius: 14px; font-size: 16.5px; box-shadow: 0 -2px 18px rgba(47,16,25,.18), 0 8px 24px rgba(47,16,25,.3); }
  .wa-float .wa-txt { display: inline; }
  body { padding-bottom: 82px; }
}

/* utilities */
.muted { color: var(--tx-soft); }
.lead { font-size: clamp(18px,2.2vw,21px); color: var(--tx-soft); line-height: 1.6; }
.rule-gold { width: 54px; height: 2px; background: var(--gold); border: 0; margin: 0 0 26px; }
.center { text-align: center; }
.center .rule-gold { margin-inline: auto; }
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); padding-block: 8px; }
.divider::before, .divider::after { content:""; height: 1px; width: 80px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider svg { width: 16px; height: 16px; }

/* placeholder */
.ph { background: repeating-linear-gradient(135deg, rgba(110,43,58,.05) 0 14px, rgba(110,43,58,.02) 14px 28px), var(--blush-soft);
  display: grid; place-items: center; color: var(--wine); position: relative; overflow: hidden; }
.ph span { font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; opacity: .7; text-align: center; padding: 14px; line-height: 1.5; }
.ph.on-wine { background: repeating-linear-gradient(135deg, rgba(247,241,236,.08) 0 14px, rgba(247,241,236,.03) 14px 28px), rgba(247,241,236,.08); color: var(--ivory); border: 1px solid rgba(224,199,189,.2); }
.ph.on-wine span { opacity: .85; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
.chip { display: inline-flex; align-items: baseline; gap: 9px; font-size: 15px; color: var(--tx-soft); }
.chip b { font-family: var(--serif); font-size: 23px; color: var(--wine); font-weight: 500; }

/* forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--wine); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--sans); font-size: 16px; color: var(--tx);
  background: var(--card); border: 1px solid rgba(110,43,58,.22); border-radius: var(--r-sm); padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,154,91,.2); }

/* prose (artículos) */
.prose { font-size: 18px; line-height: 1.75; color: #3a3330; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: clamp(26px,3.2vw,34px); color: var(--wine); margin-top: 44px; }
.prose h3 { font-size: 22px; color: var(--wine); margin-top: 32px; }
.prose p { color: #3a3330; }
.prose ul.bul { display: grid; gap: 12px; padding-left: 0; }
.prose ul.bul li { position: relative; padding-left: 30px; }
.prose ul.bul li::before { content:""; position:absolute; left: 6px; top: 11px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.prose blockquote { border-left: 3px solid var(--gold); padding: 6px 0 6px 26px; margin: 32px 0; font-family: var(--serif); font-size: 23px; line-height: 1.4; color: var(--wine); font-style: italic; }
.prose a { color: var(--wine); border-bottom: 1.5px solid var(--gold); }

@media (prefers-reduced-motion: reduce){ * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
