/* =========================================================
   Derecho & Sucesiones Uruguay — Design tokens
   ========================================================= */
:root{
  --blue:        #2563c4;
  --blue-dark:   #1e4a94;
  --blue-tint:   #eef3fc;
  --navy:        #1e293b;
  --navy-soft:   #334155;
  --gold:        #c8a96e;
  --gold-soft:   #e3d3b0;
  --white:       #ffffff;
  --gray-50:     #f7f8fa;
  --gray-100:    #eceff3;

  --font-display: 'Alice', serif;
  --font-body: 'Montserrat', sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 2px 10px rgba(30,41,59,0.06);
  --shadow-md: 0 12px 32px rgba(30,41,59,0.12);
  --shadow-lg: 0 24px 60px rgba(30,41,59,0.18);

  --container-w: 1180px;
  --header-h: 84px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure{ margin: 0; }
ul, ol{ padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; cursor: pointer; background: none; border: none; }
input, select{ font: inherit; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 400;
}

h1{ font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3{ font-size: 1.2rem; }

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

:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* =========================================================
   Eyebrow / section head
   ========================================================= */
.eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.eyebrow-light{ color: var(--gold); }

.eyebrow-title{
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.section-head{
  max-width: 700px;
  margin-bottom: 48px;
}
.section-intro{ margin-top: 14px; font-size: 1.05rem; color: var(--navy-soft); }
.on-blue{ color: var(--white); }
.on-blue-muted{ color: rgba(255,255,255,0.82); }

.section{ padding: 88px 0; }
.section-light{ background: var(--white); }
.section-blue{ background: var(--blue); }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ background: var(--blue-dark); box-shadow: var(--shadow-md); }

.btn-outline-light{
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  background: transparent;
}
.btn-outline-light:hover{ background: rgba(255,255,255,0.12); }

.btn-whatsapp{
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover{ background: var(--gold-soft); }
.icon-whatsapp{ fill: #25D366; }

.btn-block{ width: 100%; }
.btn-small{ padding: 11px 20px; font-size: 0.85rem; }

.icon{ width: 22px; height: 22px; flex-shrink: 0; fill: currentColor; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{ height: 46px; width: auto; border-radius: 6px; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.1; }
.brand-name{ font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.brand-amp{ color: var(--gold); }
.brand-sub{ font-size: 0.6rem; letter-spacing: 0.22em; color: var(--navy-soft); font-weight: 600; }

.main-nav ul{ display: flex; gap: 32px; }
.main-nav a{
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-soft);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:hover{ color: var(--blue); }
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after{ transform: scaleX(1); }

.header-actions{ display: flex; align-items: center; gap: 16px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav-toggle span{
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1{ color: var(--white); margin-bottom: 18px; }
.hero-subtitle{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.hero-text{ color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 46ch; }

.hero-ctas{ display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 40px; }

.trust-badges{ display: flex; flex-direction: column; gap: 14px; }
.trust-badges li{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
}
.trust-badges .icon{ color: var(--gold); background: rgba(255,255,255,0.12); border-radius: 50%; padding: 6px; width: 34px; height: 34px; }

.hero-media{ position: relative; }
.hero-img{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

/* =========================================================
   Cards grid (situación)
   ========================================================= */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card{
  background: var(--blue);
  color: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.problem-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.problem-card h3{
  font-family: var(--font-body);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}
.problem-card p{ color: rgba(255,255,255,0.86); font-size: 0.95rem; }

/* =========================================================
   Steps (proceso)
   ========================================================= */
.steps-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step-card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.step-number{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.step-card h3{ color: var(--white); font-size: 1.05rem; font-weight: 700; font-family: var(--font-body); margin-bottom: 8px; }
.step-card p{ color: rgba(255,255,255,0.82); font-size: 0.93rem; }

/* =========================================================
   Strip (imágenes de respaldo)
   ========================================================= */
.strip-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.strip-item img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.strip-item h3{ font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.strip-item p{ color: var(--navy-soft); font-size: 0.93rem; }

/* =========================================================
   Contacto
   ========================================================= */
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy p{ color: var(--navy-soft); margin-top: 14px; }
.contact-highlight{
  color: var(--navy) !important;
  font-weight: 700;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin-top: 22px !important;
}

.contact-card-wrap{ position: relative; }
.contact-card{
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.divider{
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  color: var(--navy-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.divider::before, .divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}

.form-field{ margin-bottom: 18px; }
.form-field label{
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-field input, .form-field select{
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d7dce3;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field select:focus{
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,196,0.15);
  outline: none;
}
.form-field.has-error input, .form-field.has-error select{
  border-color: #c0392b;
}
.field-error{
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1em;
}

.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.turnstile-field{ display: flex; justify-content: center; }

.form-note{
  font-size: 0.78rem;
  color: var(--navy-soft);
  text-align: center;
  margin-top: 16px;
}
.form-status{
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
  min-height: 1.2em;
}
.form-status.success{ color: #1e7e34; }
.form-status.error{ color: #c0392b; }

#submitBtn[disabled]{ opacity: 0.65; cursor: not-allowed; transform: none; }

/* =========================================================
   FAQ Accordion
   ========================================================= */
.accordion{ max-width: 820px; }
.accordion-item{
  border-bottom: 1px solid rgba(255,255,255,0.22);
}
.accordion-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 24px 4px;
}
.accordion-icon{
  color: var(--gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon{ transform: rotate(180deg); }

.accordion-panel{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.accordion-panel > p{
  overflow: hidden;
  min-height: 0;
  color: rgba(255,255,255,0.85);
  padding-right: 40px;
}
.accordion-item.is-open .accordion-panel{ grid-template-rows: 1fr; }
.accordion-item.is-open .accordion-panel > p{ padding-bottom: 24px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 0;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand--footer .brand-name{ color: var(--white); }
.brand--footer .brand-sub{ color: rgba(255,255,255,0.6); }
.footer-nav{ display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a{ font-size: 0.9rem; font-weight: 500; }
.footer-nav a:hover{ color: var(--gold); }
.footer-legal{ font-size: 0.8rem; color: rgba(255,255,255,0.55); width: 100%; text-align: center; }

/* =========================================================
   Floating WhatsApp
   ========================================================= */
.floating-whatsapp{
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.2s ease;
}
.floating-whatsapp:hover{ transform: scale(1.08); }
.floating-whatsapp .icon{ width: 30px; height: 30px; fill: var(--white); }

/* =========================================================
   Responsive — tablet
   ========================================================= */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; max-width: 420px; margin-inline: auto; }
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps-grid{ grid-template-columns: repeat(2, 1fr); }
  .strip-grid{ grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
  .contact-card-wrap{ max-width: 520px; margin-inline: auto; width: 100%; }
}

/* =========================================================
   Responsive — mobile
   ========================================================= */
@media (max-width: 720px){
  :root{ --header-h: 72px; }

  .brand-mark{ height: 38px; }
  .brand-name{ font-size: 1rem; }
  .brand-sub{ font-size: 0.55rem; }

  .main-nav{
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    padding: 20px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }
  .main-nav.is-open{ transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul{ flex-direction: column; gap: 4px; }
  .main-nav a{ display: block; padding: 12px 0; font-size: 1rem; }

  .header-actions .btn-small{ display: none; }
  .nav-toggle{ display: flex; }

  .section{ padding: 64px 0; }
  .hero{ padding: 48px 0 64px; }

  .hero-ctas{ flex-direction: column; }
  .hero-ctas .btn{ width: 100%; }

  .cards-grid{ grid-template-columns: 1fr; }
  .steps-grid{ grid-template-columns: 1fr; }

  .contact-card{ padding: 26px 22px; }

  .footer-inner{ flex-direction: column; text-align: center; }
  .footer-nav{ justify-content: center; }
}
