/* ============================================================
   ESTUDIO JURÍDICO FM Y ASOC. — hoja de estilos
   Paleta de marca: navy #122A3F + crema #F1E2D0 + dorado #D1A262
   Tipografía: Fraunces (display) + Archivo (texto)
   ============================================================ */

:root{
  /* color */
  --ink:        #122A3F;
  --ink-2:      #17324A;
  --ink-line:   rgba(243, 231, 214, 0.16);
  --stone:      #F1E2D0;
  --stone-2:    #E8D2B0;
  --header-bg:  #F3E1D0;
  --paper-text: #1B2A3A;
  --paper-text-soft: rgba(27, 42, 58, 0.62);
  --light-text: #F3E7D6;
  --light-text-soft: rgba(243, 231, 214, 0.72);
  --gold:       #D1A262;
  --gold-dark:  #B9873F;
  --line:       #DCC6A4;
  --whatsapp:   #25D366;
  --whatsapp-dark:#1DA851;

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --max: 1180px;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 3px;
}

*, *::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; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper-text);
  background: var(--stone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul, ol{ list-style: none; margin: 0; padding: 0; }
button{ font: inherit; }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: 0.75em 1.25em; z-index: 999;
  font-weight: 600;
}
.skip-link:focus{ left: var(--edge); top: var(--edge); }

:focus-visible{
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.eyebrow{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 0.9em;
}
.hero .eyebrow,
.about .eyebrow,
.contact .eyebrow{
  color: var(--gold);
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  cursor: pointer;
}
.btn-primary{
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover{ background: var(--gold-dark); }
.btn-outline{
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover{ background: rgba(0,0,0,0.05); }
.hero .btn-outline{ border-color: rgba(243,231,214,0.4); color: var(--light-text); }
.hero .btn-outline:hover{ background: rgba(243,231,214,0.1); }
.btn-small{ padding: 0.6em 1.1em; font-size: 0.85rem; }
.btn-form{ width: 100%; margin-top: 0.4em; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header-group{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.top-bar{
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.top-bar-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-size: 0.82rem;
}
.top-bar-name{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--light-text);
  letter-spacing: 0.02em;
}
.top-bar-divider{ color: var(--gold); opacity: 0.8; }
.top-bar-role{
  color: var(--light-text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.site-header{
  background: var(--header-bg);
  transition: box-shadow 220ms ease;
}
.site-header.is-scrolled{
  box-shadow: 0 1px 0 rgba(18,42,63,0.1), 0 6px 16px rgba(18,42,63,0.07);
}
.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem var(--edge);
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--ink);
}
.brand{
  display: flex;
  align-items: center;
  gap: 1em;
  margin-right: auto;
}
.brand-logo{
  height: 68px;
  width: auto;
}
.brand-tagline{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.76rem;
  line-height: 1.2;
  color: var(--ink);
  opacity: 0.72;
  max-width: 165px;
  padding-left: 1em;
  border-left: 1px solid rgba(18,42,63,0.22);
}
.main-nav{
  display: flex;
  gap: 1.5rem;
}
.main-nav a{
  font-size: 0.9rem;
  color: rgba(18,42,63,0.72);
  position: relative;
  padding: 0.2em 0;
  white-space: nowrap;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold-dark);
  transition: width 180ms ease;
}
.main-nav a:hover::after{ width: 100%; }

.header-actions{
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.tel-chip{
  font-size: 0.88rem;
  color: rgba(18,42,63,0.72);
  white-space: nowrap;
}
.tel-chip:hover{ color: var(--ink); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms 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); }

/* ---------- repeated logo mark, used before section eyebrows ---------- */
.section-mark{
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.section-mark--dark{
  border-color: var(--ink-line);
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  background: var(--ink);
  color: var(--light-text);
  padding: clamp(9.5rem, 18vw, 12.5rem) 0 clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}
.hero--photo{
  background:
    linear-gradient(100deg, rgba(18,42,63,0.94) 0%, rgba(18,42,63,0.88) 40%, rgba(18,42,63,0.62) 100%),
    url("../img/hero.jpg") center 30% / cover no-repeat;
}
.hero-illustration{
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(30vw, 320px);
  color: var(--gold);
  opacity: 0.4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1.5rem, 4vw, 3.5rem) 2rem 0;
  pointer-events: none;
}
.hero-illustration svg{ width: 100%; height: auto; max-height: 85%; }
.hero-container{
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge);
}
.hero-inner{
  max-width: 720px;
}
.hero-title{
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  margin-bottom: 0.55em;
}
.hero-title .reveal{ display: block; }
.hero-sub{
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--light-text-soft);
  max-width: 50ch;
  margin-bottom: 2em;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* hero load sequence — one orchestrated moment */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in 700ms cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-title .reveal:nth-child(1){ animation-delay: 60ms; }
.hero-title .reveal:nth-child(2){ animation-delay: 160ms; }
.hero-title .reveal:nth-child(3){ animation-delay: 260ms; }
.hero-sub.reveal{ animation-delay: 380ms; }
.hero-actions.reveal{ animation-delay: 480ms; }
@keyframes reveal-in{
  to{ opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   SECTION HEAD (shared)
   ============================================================ */
.section-head{
  max-width: 640px;
  margin: 0 0 3rem;
  text-align: left;
}
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-lead{
  color: var(--paper-text-soft);
  font-size: 1.03rem;
  max-width: 56ch;
}
.contact .section-lead,
.about .section-lead{ color: var(--light-text-soft); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar{
  background: var(--stone-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-list{
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem var(--edge);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.trust-list li{
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.trust-icon{
  flex: none;
  display: inline-flex;
  width: 30px;
  height: 30px;
  color: var(--gold-dark);
  margin-top: 0.1em;
}
.trust-icon svg{ width: 100%; height: 100%; }
.trust-list h3{
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.3em;
}
.trust-list p{
  font-size: 0.88rem;
  color: var(--paper-text-soft);
  margin: 0;
}

/* ============================================================
   PRACTICE AREAS
   ============================================================ */
.practice{
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge);
  max-width: var(--max);
  margin: 0 auto;
}
.practice-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.practice-card{
  background: var(--stone);
  padding: 2.1rem 1.9rem 2rem;
  transition: background-color 180ms ease;
}
.practice-card:hover{ background: var(--stone-2); }
.practice-icon{
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--gold-dark);
  margin-bottom: 1.2rem;
}
.practice-icon svg{ width: 100%; height: 100%; }
.practice-card h3{
  font-size: 1.1rem;
  font-weight: 600;
}
.practice-card p{
  margin: 0;
  color: var(--paper-text-soft);
  font-size: 0.95rem;
}

/* ============================================================
   STRATEGIES
   ============================================================ */
.strategies{
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge);
  max-width: var(--max);
  margin: 0 auto;
  background: var(--stone-2);
}
.strategy-columns{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}
.strategy-col{
  border-top: 2px solid var(--gold);
  padding-top: 1.4rem;
}
.strategy-col h3{
  font-size: 1.12rem;
  margin-bottom: 0.4em;
}
.strategy-col > p{
  color: var(--paper-text-soft);
  font-size: 0.92rem;
  margin-bottom: 1.3em;
}
.tag-list{
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.tag-list li{
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--paper-text);
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4em 0.9em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about{
  background: var(--ink);
  color: var(--light-text);
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge);
  max-width: var(--max);
  margin: 0 auto;
}
.about-frame{
  position: relative;
  padding: 14px 14px 0 0;
}
.about-frame::before{
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  border: 1px solid var(--gold);
  z-index: 0;
}
.about-frame img{
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(10%);
}
.about-content h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.about-lede{
  font-size: 1.08rem;
  color: var(--light-text);
}
.about-content p{ color: var(--light-text-soft); }
.about-lede-2{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.02rem;
}
.about-note{
  font-size: 0.9rem;
  padding-top: 0.4em;
  border-top: 1px solid var(--ink-line);
}
.about-note em{ color: var(--gold); font-style: italic; }
.about-ig{
  display: inline-block;
  margin-top: 0.5em;
  color: var(--light-text);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.about-ig:hover{ color: var(--gold); }

/* ============================================================
   PROCESS
   ============================================================ */
.process{
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge);
  max-width: var(--max);
  margin: 0 auto;
}
.process-list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
.process-step{
  padding: 1.75rem 1.75rem 0 0;
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}
.process-step:first-child{ border-left: none; padding-left: 0; }
.step-num{
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1rem;
  margin-bottom: 0.6em;
}
.process-step h3{ font-size: 1.08rem; margin-bottom: 0.4em; }
.process-step p{ color: var(--paper-text-soft); font-size: 0.95rem; margin: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials{
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge);
  max-width: var(--max);
  margin: 0 auto;
}
.testimonial-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.testimonial-card{
  background: var(--stone-2);
  border-top: 2px solid var(--gold);
  padding: 1.9rem 1.75rem;
  position: relative;
}
.testimonial-quote{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.04rem;
  color: var(--paper-text);
  margin-bottom: 1em;
}
.testimonial-name{
  font-size: 0.85rem;
  color: var(--paper-text-soft);
  margin: 0;
}
.testimonial-name span{ font-style: italic; opacity: 0.75; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact{
  background: var(--ink);
  color: var(--light-text);
  padding: clamp(4.5rem, 9vw, 7rem) var(--edge);
}
.contact-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }

.contact-list{
  margin-top: 2rem;
  border-top: 1px solid var(--ink-line);
}
.contact-list li{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1em 0;
  border-bottom: 1px solid var(--ink-line);
}
.contact-icon{
  flex: none;
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--gold);
}
.contact-icon svg{ width: 100%; height: 100%; }
.contact-text{
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.contact-label{
  color: var(--light-text-soft);
  font-size: 0.8rem;
}
.contact-list a{
  font-family: var(--font-display);
  font-size: 1.08rem;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.contact-list a:hover{ border-bottom-color: var(--gold); }
.contact-static{
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--light-text);
}

.contact-form{
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  align-self: start;
}
.form-title{
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1em;
}
.contact-form label{
  display: block;
  font-size: 0.85rem;
  color: var(--light-text-soft);
  margin-bottom: 0.4em;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  color: var(--light-text);
  border-radius: var(--radius);
  padding: 0.75em 0.9em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1.1em;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: var(--gold);
}
.form-hint{
  font-size: 0.8rem;
  color: var(--light-text-soft);
  margin: 0.8em 0 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--ink);
  color: var(--light-text-soft);
  border-top: 1px solid var(--ink-line);
  padding: 2rem var(--edge) 6.5rem;
}
.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand-group{
  display: flex;
  align-items: center;
  gap: 0.75em;
}
.footer-logo{
  height: 32px;
  width: auto;
  border-radius: 50%;
}
.footer-brand{
  font-family: var(--font-display);
  color: var(--light-text);
  margin: 0;
}
.footer-legal{
  font-size: 0.82rem;
  max-width: 46ch;
  margin: 0;
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.float-whatsapp{
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  width: 52px; height: 52px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(18,42,63,0.35);
  z-index: 90;
  transition: background-color 160ms ease, transform 160ms ease;
}
.float-whatsapp:hover{ background: var(--whatsapp-dark); transform: translateY(-2px); }
.float-whatsapp svg{ width: 24px; height: 24px; fill: #FFFFFF; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .about{ grid-template-columns: 1fr; }
  .about-media{ max-width: 340px; }
  .contact-inner{ grid-template-columns: 1fr; }
  .process-list{ grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .process-step{ border-left: none; padding-left: 0; }
  .process-step:nth-child(odd){ border-right: 1px solid var(--line); padding-right: 1.5rem; }
  .trust-list{ grid-template-columns: 1fr; gap: 1.4rem; }
  .strategy-columns{ grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px){
  .brand-tagline{ display: none; }
  .brand-logo{ height: 54px; }
  .top-bar-inner{ font-size: 0.72rem; gap: 0.4em; }
  .main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 7.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 240ms ease;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav a{
    font-size: 1.05rem;
    padding: 0.9em 0;
    border-bottom: 1px solid var(--ink-line);
    color: var(--light-text);
  }
  .tel-chip{ display: none; }
  .nav-toggle{ display: flex; }
  .header-actions .btn-small{ padding: 0.6em 0.9em; font-size: 0.8rem; }

  .process-list{ grid-template-columns: 1fr; }
  .process-step{ border: none !important; padding: 1.5rem 0 !important; border-bottom: 1px solid var(--line) !important; }
  .process-step:last-child{ border-bottom: none !important; }

  .contact-list li{ align-items: flex-start; }
}

@media (max-width: 480px){
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-illustration{ width: 42vw; opacity: 0.28; }
  .brand-logo{ height: 44px; }
  .top-bar-role{ display: none; }
  .top-bar-divider{ display: none; }
}