/* ===========================================================
   Elías Villar Abogados — landing page
   =========================================================== */

:root{
  --cream:       #F6EFDB;
  --cream-deep:  #EFE4C4;
  --ink:         #211407;
  --ink-soft:    #4A3B26;
  --bronze:      #9C7A2E;
  --bronze-deep: #5A3E14;
  --navy:        #1F3B57;
  --navy-deep:   #14293C;
  --white:       #FFFDF7;

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
}

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

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a{ color: inherit; }
ul{ margin: 0; padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }

:focus-visible{
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

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

.eyebrow{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin: 0 0 14px;
}
.eyebrow.center{ text-align: center; }

.section-title{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--ink);
}
.section-title.center{ text-align: center; }

/* decorative background monogram watermark */
.bg-monogram{
  position: fixed;
  top: -8vw;
  right: -6vw;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 44vw;
  line-height: 1;
  color: rgba(156, 122, 46, 0.05);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* ---------------- header ---------------- */
.site-header{
  position: relative;
  z-index: 10;
  padding: 20px 0;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}
.logo-mark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--bronze), var(--bronze-deep));
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.logo-text em{
  font-style: normal;
  color: var(--bronze-deep);
}
.header-cta{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--bronze);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ---------------- hero ---------------- */
.hero{
  position: relative;
  z-index: 1;
  padding: 32px 0 64px;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero-sub{
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}
.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg{ width: 19px; height: 19px; flex-shrink: 0; }
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover{ background: var(--navy-deep); box-shadow: 0 6px 18px rgba(31,59,87,0.28); }

.btn-whatsapp{
  background: #ffffff;
  color: var(--navy-deep);
  border-color: rgba(31,59,87,0.25);
}
.btn-whatsapp:hover{ border-color: var(--navy); box-shadow: 0 6px 18px rgba(31,59,87,0.14); }

.btn-outline{
  background: transparent;
  color: var(--ink);
  border-color: var(--bronze);
}
.btn-outline:hover{ background: rgba(156,122,46,0.08); }

.btn-lg{ padding: 16px 28px; font-size: 1.02rem; }

.hero-photo{
  position: relative;
  justify-self: center;
  width: clamp(220px, 32vw, 340px);
  aspect-ratio: 1 / 1;
}
.hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(33,20,7,0.22);
  border: 6px solid var(--white);
}
.photo-caption{
  text-align: center;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
}
.photo-caption span{
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-top: 4px;
}

/* ---------------- trust strip ---------------- */
.trust-strip{
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--cream);
  padding: 28px 0;
}
.trust-inner{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item strong{
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #E9CE8A;
  margin-bottom: 4px;
}
.trust-item span{
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: rgba(246,239,219,0.72);
}

/* ---------------- services ---------------- */
.services{
  position: relative;
  z-index: 1;
  padding: 84px 0;
}
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.service-card{
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(33,20,7,0.05);
}
.service-card h3{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--ink);
  border-bottom: 2px solid var(--bronze);
  padding-bottom: 14px;
}
.service-card h3 span{
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bronze-deep);
  margin-top: 4px;
}
.service-card ul{
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.service-card li{
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.service-card li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--bronze);
  transform: rotate(45deg);
}

/* ---------------- about ---------------- */
.about{
  position: relative;
  z-index: 1;
  background: var(--cream-deep);
  padding: 84px 0;
}
.about-inner{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.about-mark{
  font-family: var(--serif);
  font-weight: 700;
  font-size: 7rem;
  line-height: 1;
  color: var(--bronze);
  opacity: 0.9;
}
.about-copy p{
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------------- contact ---------------- */
.contact{
  position: relative;
  z-index: 1;
  padding: 90px 0 100px;
}
.contact-actions{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 36px 0 20px;
}
.contact-location{
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

/* ---------------- footer ---------------- */
.site-footer{
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: rgba(246,239,219,0.65);
  padding: 22px 0;
  font-size: 0.85rem;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------------- responsive ---------------- */
@media (max-width: 860px){
  .hero-inner{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-photo{ order: -1; }
  .service-grid{ grid-template-columns: 1fr; }
  .about-inner{ grid-template-columns: 1fr; text-align: center; }
  .about-mark{ margin: 0 auto; }
  .trust-inner{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px){
  .header-inner{ flex-direction: row; }
  .logo-text{ font-size: 0.95rem; }
  .cta-row, .contact-actions{ flex-direction: column; }
  .btn{ width: 100%; justify-content: center; }
  .bg-monogram{ font-size: 70vw; top: -10vw; right: -20vw; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn{ transition: none; }
}
