/* ============================================================
   S&N ABOGADOS — Website Stylesheet
   Paleta y tipografía consistentes con el brochure corporativo
   ============================================================ */

:root{
  --navy: #0f1f38;
  --navy-2: #16294a;
  --navy-deep: #0b1729;
  --gold: #b08d57;
  --gold-light: #cba876;
  --cream: #f7f5f0;
  --ink: #1c2430;
  --grey: #5c6472;
  --line: #d9d3c6;
  --line-soft: #e7e2d6;

  --serif: 'Lora', serif;
  --sans: 'Poppins', sans-serif;

  --container-w: 1120px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior: smooth; scroll-padding-top: 84px; }

body{
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,h2,h3,h4{ font-family: var(--serif); color: var(--navy); font-weight:600; }

/* ============ Utility ============ */
.eyebrow{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.eyebrow-light{ color: var(--gold-light); }

.section-title{
  font-size: clamp(28px, 3.4vw, 38px);
  margin-top: 8px;
  color: var(--navy);
}
.section-title-light{ color: #fff; }

.section-rule{
  width: 54px; height: 3px; background: var(--gold);
  margin: 18px 0 34px 0;
}

.section{ padding: 100px 0; }
.section-light{ background: #fdfcfa; }
.section-white{ background: #ffffff; }
.section-cream{ background: var(--cream); }
.section-navy{
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-deep) 100%);
  color: #fff;
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.btn-gold{
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover{ background: var(--gold-light); transform: translateY(-1px); }
.btn-outline{
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover{ background: rgba(255,255,255,0.1); border-color:#fff; }

/* ============ NAV ============ */
.nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled{
  background: rgba(15,31,56,0.96);
  backdrop-filter: blur(6px);
  padding: 12px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.nav-inner{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav-brand img{ height: 72px; width:auto; }
.nav-links{
  display:flex;
  align-items:center;
  gap: 34px;
}
.nav-link{
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  font-weight:500;
  position: relative;
  padding: 4px 0;
}
.nav-link::after{
  content:"";
  position:absolute;
  bottom:-2px; left:0;
  width:0; height:1px;
  background: var(--gold-light);
  transition: width 0.25s ease;
}
.nav-link:hover::after{ width:100%; }
.nav-link.active{ color: #fff; }
.nav-link.active::after{ width:100%; }
.nav-cta{
  background: var(--gold);
  color:#fff !important;
  padding: 9px 20px;
  border-radius: 2px;
  font-weight:600;
}
.nav-cta::after{ display:none; }
.nav-cta:hover{ background: var(--gold-light); }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  width: 26px;
}
.nav-toggle span{
  height:2px; width:100%;
  background:#fff;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-deep) 100%);
  color:#fff;
}
.hero-rings{ position:absolute; inset:0; pointer-events:none; }
.ring{
  position:absolute;
  border-radius:50%;
  border: 1px solid rgba(203,168,118,0.22);
}
.ring-1{ width:560px; height:560px; top:-180px; right:-160px; }
.ring-2{ width:560px; height:560px; top:-100px; right:-80px; border-color: rgba(203,168,118,0.14); }

.hero-inner{
  position:relative;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 140px 28px 100px;
  width:100%;
}
.hero-tag{
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 26px;
}
.hero-rule{ width:64px; height:2px; background: var(--gold-light); margin-bottom:26px; }
.hero-title{
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.15;
  color:#fff;
  max-width: 640px;
}
.hero-title em{
  font-style: italic;
  color: var(--gold-light);
  font-weight:500;
}
.hero-sub{
  font-family: var(--sans);
  font-weight:300;
  font-size: 17px;
  letter-spacing:0.5px;
  color: rgba(255,255,255,0.75);
  margin-top: 22px;
}
.hero-actions{
  display:flex;
  gap:16px;
  margin-top: 42px;
  flex-wrap:wrap;
}

.scroll-cue{
  position:absolute;
  bottom: 34px; left:50%;
  transform: translateX(-50%);
  width:26px; height:42px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius:14px;
}
.scroll-cue span{
  position:absolute;
  top:8px; left:50%;
  width:4px; height:8px;
  background: var(--gold-light);
  border-radius:2px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ opacity:1; top:8px; }
  70%{ opacity:0; top:22px; }
  100%{ opacity:0; top:8px; }
}

/* ============ QUIENES SOMOS ============ */
.quienes-grid{
  display:grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items:start;
}
.quienes-body p{
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.85;
  color: #333c47;
  margin-bottom: 18px;
}
.quienes-body p.dropcap::first-letter{
  font-family: var(--serif);
  font-size: 58px;
  font-weight:600;
  color: var(--navy);
  float:left;
  line-height:0.85;
  padding-right: 10px;
  padding-top: 6px;
}
.pillars{
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.pillar{
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 22px 24px;
  position:relative;
}
.pillar-num{
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  font-weight:600;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.pillar h4{
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight:600;
}
.pillar p{
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--grey);
  line-height:1.65;
}

/* ============ SERVICIOS ============ */
.service-block{ margin-bottom: 44px; }
.service-block h3{
  font-size: 21px;
  color: var(--navy);
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 14px;
}
.diamond{
  width: 9px; height:9px;
  background: var(--gold);
  display:inline-block;
  transform: rotate(45deg);
  flex-shrink:0;
}
.service-intro{
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--grey);
  max-width: 720px;
  margin-bottom: 18px;
  line-height:1.7;
}
.service-list{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 36px;
}
.service-list li{
  font-family: var(--sans);
  font-size: 13.6px;
  line-height:1.65;
  color: #3a4250;
  padding-left: 18px;
  position:relative;
  break-inside: avoid;
}
.service-list li::before{
  content:"—";
  position:absolute; left:0; top:0;
  color: var(--gold);
}
.alliances{
  margin-top: 20px;
  background: var(--navy);
  color:#fff;
  padding: 26px 32px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 10px 30px;
}
.alliances-lab{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing:1.5px;
  color: var(--gold-light);
  text-transform:uppercase;
  font-weight:600;
  white-space:nowrap;
}
.alliances-text{
  font-family: var(--serif);
  font-style:italic;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  flex: 1 1 320px;
}
.alliances-items{
  display:flex;
  gap: 24px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight:500;
}
.alliances-items span::before{ content:"· "; color: var(--gold-light); }

/* ============ EXPERIENCIA ============ */
.exp-grid{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
}
.exp-photo{ position:relative; }
.exp-photo img{
  width:100%;
  height: 400px;
  object-fit:cover;
}
.exp-caption{
  background: var(--navy);
  color:#fff;
  padding: 18px 20px;
}
.exp-name{ font-family: var(--serif); font-weight:600; font-size:16px; }
.exp-role{
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing:1.5px;
  color: var(--gold-light);
  text-transform:uppercase;
  margin-top:4px;
}
.recog-card{
  margin-top: 20px;
  border: 1px solid var(--line);
  padding: 20px 22px;
}
.recog-card h4{
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing:1.5px;
  color: var(--navy);
  text-transform:uppercase;
  margin-bottom: 12px;
  font-weight:600;
}
.recog-card li{
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--grey);
  line-height:1.8;
  padding-left: 16px;
  position:relative;
}
.recog-card li::before{
  content:"✓";
  position:absolute; left:0; color: var(--gold);
  font-size: 11px;
}
.exp-text-col p{
  font-family: var(--serif);
  font-size: 16px;
  line-height:1.85;
  color: #333c47;
  margin-bottom: 18px;
}
.exp-highlights{ margin-top: 8px; }
.exp-highlights h4{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing:1.5px;
  color: var(--navy);
  text-transform:uppercase;
  margin-bottom: 14px;
  font-weight:600;
}
.exp-highlights li{
  font-family: var(--sans);
  font-size: 14px;
  color: #3a4250;
  line-height:1.9;
  padding-left: 18px;
  position:relative;
}
.exp-highlights li::before{
  content:"—";
  position:absolute; left:0; color: var(--gold);
}

/* ============ POR QUE ELEGIRNOS ============ */
.why-intro{
  font-family: var(--sans);
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  line-height:1.7;
  margin-bottom: 12px;
}
.why-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.why-item{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(203,168,118,0.3);
  padding: 24px 22px;
  display:flex;
  gap: 14px;
  align-items:flex-start;
  transition: background 0.25s ease, transform 0.25s ease;
}
.why-item:hover{ background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.why-num{
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold-light);
  font-weight:600;
  line-height:1;
}
.why-item p{
  font-family: var(--sans);
  font-size: 13.5px;
  line-height:1.6;
  color: rgba(255,255,255,0.9);
}
.why-quote{
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 760px;
}
.why-quote span{ color: var(--gold-light); font-style:normal; font-weight:600; }

/* ============ CONTACTO ============ */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items:start;
}
.contact-msg{
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.75;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 32px;
}
.contact-msg span{ color: var(--gold); font-style:normal; }
.contact-card{
  background: var(--navy);
  color:#fff;
  padding: 30px 32px;
  position:relative;
}
.contact-card::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:5px;
  background: var(--gold);
}
.contact-person .name{ font-family: var(--serif); font-size:19px; font-weight:600; }
.contact-person .role{
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing:1px;
  color: var(--gold-light);
  text-transform:uppercase;
  margin-top:4px;
}
.contact-details{
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 13px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.contact-details li{ display:flex; gap:10px; align-items:baseline; }
.contact-details b{ color: var(--gold-light); font-weight:600; min-width: 76px; }
.contact-details a:hover{ text-decoration:underline; }

.contact-form{
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 34px;
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field{ margin-bottom: 20px; }
.form-field label{
  display:block;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight:600;
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea{
  width:100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: #fdfcfa;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline:none;
  border-color: var(--gold);
}
.form-field textarea{ resize: vertical; }
.btn-submit{ width:100%; margin-top: 4px; }
.hp-field{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
}
.form-status{
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  min-height: 18px;
}
.form-status.success{ color: #2e7d32; }
.form-status.error{ color: #c0392b; }

/* ============ FOOTER ============ */
.footer{
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}
.footer-inner{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap: 24px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo{ height: 56px; width:auto; }
.footer-links{
  display:flex;
  gap: 26px;
  flex-wrap:wrap;
  font-family: var(--sans);
  font-size: 12.5px;
}
.footer-links a:hover{ color: var(--gold-light); }
.footer-meta{
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-align:right;
  color: rgba(255,255,255,0.5);
  line-height:1.7;
}
.footer-bottom{
  text-align:center;
  font-family: var(--sans);
  font-size: 11.5px;
  padding: 20px 0;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px){
  .quienes-grid,
  .exp-grid,
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .exp-photo img{ height: 320px; }
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
  .service-list{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy);
    flex-direction: column;
    justify-content:center;
    align-items:flex-start;
    gap: 28px;
    padding: 40px;
    transition: right 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }
  .nav-links.open{ right:0; }
  .nav-toggle{ display:flex; }
  .nav-cta{ width:100%; text-align:center; }

  .hero-inner{ padding: 120px 24px 90px; }
  .section{ padding: 70px 0; }
  .why-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction:column; align-items:flex-start; }
  .footer-meta{ text-align:left; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .scroll-cue span{ animation:none; }
  *{ transition:none !important; }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
