/* ===========================================================
   DRA. SOFÍA INÉS PANEBIANCO · defensa penal estratégica
   Paleta: marfil #F5F1EC · lino #E8DDD0 · arena #D8C7B3
           champagne #C7A56A · champagne intenso #B88B4A
           taupe oscuro #6E6258 · marrón topo #4B3D33
   Firma visual: la línea vertical fina del monograma "S│P",
   repetida como motivo estructural en eyebrows, íconos y divisores.
=========================================================== */

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

:root{
  --ivory:      #F5F1EC;
  --ivory-dim:  #EFE8DE;
  --linen:      #E8DDD0;
  --sand:       #D8C7B3;
  --gold:       #C7A56A;
  --gold-deep:  #B88B4A;
  --gold-pale:  #E9D9B8;
  --taupe:      #6E6258;
  --umber:      #4B3D33;
  --ink:        #2E241C;

  --serif: 'Cormorant Garamond', serif;
  --sans:  'Montserrat', sans-serif;
  --body:  'Roboto', sans-serif;

  --container: 1180px;
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@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{
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- LOGO MARK (motivo firma) ---------------- */
.mark{
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1;
}
.mark i{
  width: 1px;
  height: 17px;
  background: var(--gold);
  display: inline-block;
  font-style: normal;
}

/* ---------------- EYEBROW (tick vertical dorado) ---------------- */
.eyebrow{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before{
  content: '';
  width: 1px;
  height: 15px;
  background: var(--gold);
}

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 500;
  color: var(--umber);
  margin: 0;
  letter-spacing: 0.01em;
}

.section-title{
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  margin-top: 12px;
}

.section-lede{
  font-family: var(--body);
  font-weight: 300;
  font-size: 16.5px;
  color: var(--taupe);
  max-width: 48ch;
  margin-top: 16px;
  line-height: 1.75;
}

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

section{ position: relative; padding: 104px 0; }

/* ---------------- BUTTONS ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .35s ease, background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
  white-space: nowrap;
}
.btn svg{ width: 16px; height: 16px; flex-shrink: 0; }
.btn:focus-visible, a:focus-visible, button:focus-visible{
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}
.btn-primary{
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(184,139,74,0.55);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(184,139,74,0.65); }
.btn-ghost{
  background: transparent;
  color: var(--umber);
  border-color: var(--umber);
}
.btn-ghost:hover{
  background: var(--umber);
  color: var(--ivory);
  transform: translateY(-2px);
}

/* ---------------- NAV ---------------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.nav.is-scrolled{
  background: rgba(245, 241, 236, 0.94);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(75,61,51,0.1);
}
.nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand{ display: flex; align-items: baseline; gap: 12px; }
.nav-brand-text{
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--umber);
  font-weight: 600;
}
.nav-links{
  display: flex;
  gap: 36px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--umber);
}
.nav-links a{ position: relative; padding-bottom: 4px; }
.nav-links a::after{
  content:'';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 1px;
  background: var(--gold-deep);
  transition: width .3s ease;
}
.nav-links a:hover::after{ width: 100%; }
.nav-cta{ display: flex; align-items: center; gap: 18px; }
.nav-cta .btn{ padding: 11px 20px; font-size: 11.5px; }
.nav-toggle{
  display: none;
  background: none; border: none;
  width: 30px; height: 22px;
  position: relative;
}
.nav-mobile{ display: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:'';
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--umber);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span{ top: 50%; transform: translateY(-50%); }
.nav-toggle span::before{ top: -8px; }
.nav-toggle span::after{ top: 8px; }
.nav-toggle.is-open span{ background: transparent; }
.nav-toggle.is-open span::before{ transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span::after{ transform: translateY(-8px) rotate(-45deg); }

/* ---------------- HERO ---------------- */
.hero{
  position: relative;
  z-index: 0;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  overflow: hidden;
  background: var(--ivory);
}
.hero-bg{ position: absolute; inset: 0; z-index: 1; }
.hero-bg img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 78% 50%;
}
.hero-bg::after{
  content:'';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ivory) 0%, rgba(245,241,236,0.94) 24%, rgba(245,241,236,0.55) 44%, rgba(245,241,236,0.12) 62%, transparent 78%);
}
.hero .wrap{ position: relative; z-index: 2; }
.hero-copy{ max-width: 640px; }
.hero-prefix{
  opacity: 0;
  animation: rise .9s ease forwards .18s;
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
}
.hero-copy h1{
  opacity: 0;
  animation: rise .9s ease forwards .3s;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.06;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero-divider{
  opacity: 0;
  animation: rise .9s ease forwards .42s;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
}
.hero-divider span{ width: 60px; height: 1px; background: var(--gold); }
.hero-divider i{
  width: 7px; height: 7px;
  background: var(--gold-deep);
  transform: rotate(45deg);
  display: inline-block;
}
.hero-subtitle{
  opacity: 0;
  animation: rise .9s ease forwards .5s;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}
.hero-actions{
  opacity: 0;
  animation: rise .9s ease forwards .64s;
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.badge-24{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.55);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--umber);
  font-weight: 500;
}
.badge-24 svg{ width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; }

@keyframes rise{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------------- GROWING LINE DIVIDER (signature) ---------------- */
.divider{
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
  color: var(--gold-deep);
}
.divider svg path,
.divider svg circle{
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.5s ease;
}
.divider.in-view svg path,
.divider.in-view svg circle{
  stroke-dashoffset: 0;
}

/* ---------------- SOBRE MÍ ---------------- */
.about{ background: var(--ivory); }
.about .wrap{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 74px;
  align-items: center;
}
.about-media{ position: relative; }
.about-media::before{
  content:'';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  z-index: -1;
}
.about-media img{
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 30px 60px -26px rgba(75,61,51,0.4);
}
.about-text p{
  color: var(--umber);
  font-weight: 300;
  font-size: 16.5px;
  margin-top: 22px;
  max-width: 54ch;
  line-height: 1.85;
}
.about-signature{
  margin-top: 28px !important;
  padding-top: 26px;
  border-top: 1px solid var(--sand);
  font-family: var(--serif) !important;
  font-style: italic;
  font-size: 19px !important;
  color: var(--gold-deep) !important;
  font-weight: 500;
}

/* ---------------- ÁREAS DE PRÁCTICA ---------------- */
.areas-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--sand);
  border-left: 1px solid var(--sand);
}
.area-card{
  background: var(--ivory);
  padding: 40px 34px;
  border-right: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  transition: background .4s ease;
}
.area-card:hover{ background: var(--ivory-dim); }
.area-icon{
  width: 50px; height: 50px;
  color: var(--gold-deep);
  display: inline-flex;
}
.area-card h3{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--umber);
  margin-top: 22px;
  line-height: 1.4;
}
.area-card p{
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--taupe);
  max-width: 32ch;
  line-height: 1.65;
}
.areas-footnote{
  margin-top: 34px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-deep);
}

/* ---------------- JURISDICCIONES (discreto) ---------------- */
.jurisdictions{
  background: var(--linen);
  padding: 52px 0;
  text-align: center;
}
.jurisdictions .eyebrow{ justify-content: center; }
.jurisdictions-list{
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
}
.jurisdictions-list li{
  padding: 4px 20px;
  border-left: 1px solid var(--sand);
}
.jurisdictions-list li:first-child{ border-left: none; }

/* ---------------- BLOQUE OSCURO ---------------- */
.dark-block{
  background: var(--taupe);
  padding: 100px 0;
  text-align: center;
}
.dark-block-icon{
  width: 40px; height: 40px;
  color: var(--gold-pale);
  margin: 0 auto;
}
.dark-block-quote{
  margin-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 36px);
  color: var(--ivory);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}
.dark-block-sub{
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

/* ---------------- MODALIDADES ---------------- */
.modalities{ background: var(--ivory-dim); padding: 84px 0; }
.modalities-row{
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.modalities-list{ display: flex; gap: 46px; flex-wrap: wrap; }
.modality{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--umber);
  font-weight: 500;
}
.modality-icon{ width: 26px; height: 26px; color: var(--gold-deep); display: inline-flex; }

/* ---------------- CONTACTO ---------------- */
.contact{ background: var(--ivory); }
.contact .wrap{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: start;
}
.contact-list{ margin-top: 38px; display: flex; flex-direction: column; gap: 24px; }
.contact-item{ display: flex; gap: 18px; align-items: flex-start; }
.contact-item .ic{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--umber);
  color: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .ic svg{ width: 18px; height: 18px; }
.contact-item h4{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 4px;
}
.contact-item p{ margin: 0; font-size: 16px; color: var(--umber); }
.contact-item a:hover{ color: var(--gold-deep); }

.contact-side{ display: flex; flex-direction: column; gap: 22px; }
.contact-card{
  background: linear-gradient(150deg, var(--umber), #3a2e25);
  color: var(--ivory);
  padding: 42px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.contact-card::after{
  content:'';
  position: absolute;
  right: -40px; bottom: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(199,165,106,0.22), transparent 70%);
}
.contact-card p{
  margin-top: 16px;
  color: rgba(245,241,236,0.78);
  font-size: 15px;
  font-weight: 300;
  max-width: 40ch;
}
.contact-card .btn-primary{ margin-top: 26px; }

.qr-card{
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--sand);
  background: var(--ivory-dim);
}
.qr-card img{ width: 90px; height: 90px; flex-shrink: 0; border: 1px solid var(--sand); }
.qr-card span{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
  max-width: 20ch;
}

/* ---------------- FOOTER ---------------- */
footer{
  background: var(--umber);
  color: rgba(245,241,236,0.7);
  padding: 54px 0 30px;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(245,241,236,0.14);
}
.footer-brand{ display: flex; align-items: center; gap: 16px; }
.footer-brand .mark{ color: var(--gold-pale); }
.footer-brand .mark i{ background: var(--gold-pale); }
.footer-brand div{ display: flex; flex-direction: column; gap: 3px; }
.footer-name{
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ivory);
}
.footer-role{
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,241,236,0.55);
}
.footer-links{ display: flex; gap: 30px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links a:hover{ color: var(--gold-pale); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- WHATSAPP FLOTANTE ---------------- */
.wa-float{
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(75,61,51,0.55);
  transition: transform .3s ease;
}
.wa-float:hover{ transform: translateY(-4px) scale(1.05); }
.wa-float svg{ width: 25px; height: 25px; }

/* ---------------- SCROLL REVEAL ---------------- */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px){
  .about .wrap{ grid-template-columns: 1fr; }
  .about-media{ max-width: 380px; margin: 0 auto; }
  .areas-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact .wrap{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .wrap{ padding: 0 22px; }
  section{ padding: 72px 0; }
  .hero{ min-height: auto; padding: 130px 0 60px; }
  .hero-bg::after{
    background: linear-gradient(180deg, var(--ivory) 0%, rgba(245,241,236,0.94) 38%, rgba(245,241,236,0.75) 62%, rgba(245,241,236,0.55) 100%);
  }
  .hero-bg img{ object-position: 62% 50%; }
  .hero-copy{ max-width: 100%; }
  .nav-links, .nav-cta .btn{ display: none; }
  .nav-toggle{ display: block; }
  .nav-mobile{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--ivory);
    box-shadow: -20px 0 50px -20px rgba(75,61,51,0.3);
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 99;
    padding: 100px 34px 40px;
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .nav-mobile.is-open{ transform: translateX(0); }
  .nav-mobile a{
    font-family: var(--serif);
    font-size: 21px;
    color: var(--umber);
  }
  .areas-grid{ grid-template-columns: 1fr; }
  .jurisdictions-list li{ border-left: none; padding: 4px 12px; }
  .modalities-row{ flex-direction: column; align-items: flex-start; }
  .contact-card{ padding: 30px; }
  .qr-card{ flex-direction: column; text-align: center; }
}
