/* ===================================================================
   AVP Abogados — hoja de estilos
   =================================================================== */

@font-face {
  font-family: "Antonio";
  src: url("../fonts/Antonio-Regular.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --near-black: #0c0c0c;
  --white: #ffffff;
  --primary: #66443b;
  --primary-dark: #4d3229;
  --accent: #a27842;
  --ink: #324a6d;
  --muted: #7a7a7a;
  --muted-2: #919191;
  --border: #c8d5dc;
  --bg-soft: #f9fafd;
  --bg-soft-2: #f5f5f5;
  --whatsapp: #498b22;
  --whatsapp-dark: #3a6f1a;

  --font-display: "Antonio", sans-serif;
  --font-body: "Poppins", sans-serif;

  --max-width: 1140px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
  padding: 14px 24px;
}
.menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--black);
  border: none;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.menu-toggle:hover { transform: scale(1.08); }
.menu-toggle svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- desktop nav ---------- */
.desktop-nav {
  display: none;
}
.desktop-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 11px 22px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.desktop-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.desktop-nav a.is-active {
  color: var(--white);
  background: var(--primary);
}

@media (min-width: 900px) {
  .site-header { justify-content: center; padding: 24px 32px; }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
  .menu-toggle { display: none; }
}

/* ---------- nav drawer ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 78vw);
  background: #141414;
  z-index: 901;
  display: flex;
  flex-direction: column;
  padding: 28px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.nav-overlay.is-open .nav-drawer { transform: translateX(0); }
.nav-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 40px;
}
.nav-close svg { width: 16px; height: 16px; fill: currentColor; }
.nav-menu { display: flex; flex-direction: column; gap: 26px; }
.nav-menu a {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--white);
  border-color: var(--accent);
}

/* ---------- hero (home) ---------- */
.hero {
  background: radial-gradient(at top center, #202020 0%, #000000 100%);
  padding: 170px 24px 160px;
  text-align: center;
}
.hero__logo { max-width: 340px; margin: 0 auto; }
.hero__logo img { width: 100%; height: auto; }

/* ---------- page header (inner pages) ---------- */
.page-hero {
  background: radial-gradient(at top center, #202020 0%, #000000 100%);
  padding: 130px 24px 56px;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(36px, 6vw, 55px);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

/* ---------- practice areas grid ---------- */
.areas {
  max-width: 900px;
  margin: -46px auto 0;
  padding: 0 24px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  position: relative;
  z-index: 10;
}
.area-card { text-align: center; }
.area-card__photo {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--muted);
}
.area-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.area-card:hover .area-card__photo img { transform: scale(1.06); }
.area-card__title {
  margin-top: 12px;
  font-size: 1.4em;
  text-transform: none;
}

@media (max-width: 700px) {
  .areas { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
}

/* ---------- CTA "necesitas ayuda legal" ---------- */
.cta {
  background: var(--white);
  padding: 60px 24px 0;
}
.cta__card {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--bg-soft);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.cta__top {
  padding: 60px 5% 30px;
  text-align: center;
}
.cta__social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
.cta__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.cta__social a:hover { background: var(--accent); }
.cta__social svg { width: 18px; height: 18px; fill: currentColor; }
.cta__top h2 {
  font-size: clamp(30px, 5vw, 55px);
  text-transform: capitalize;
}
.cta__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
.cta__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 40px 6%;
}
.cta__text p { font-size: 16px; }
.cta__photo {
  background-size: cover;
  background-position: center left;
  min-height: 260px;
}

@media (max-width: 760px) {
  .cta__split { grid-template-columns: 1fr; }
  .cta__photo { order: -1; min-height: 220px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 38px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--primary);
  background-image: linear-gradient(180deg, #997268 0%, var(--primary) 100%);
  color: var(--white);
  width: fit-content;
  cursor: pointer;
  transition: color 0.2s ease, background-image 0.2s ease;
}
.btn:hover {
  background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  color: var(--accent);
}
.btn--whatsapp {
  border-color: var(--whatsapp);
  background-image: linear-gradient(180deg, #6fb23e 0%, var(--whatsapp) 100%);
}
.btn--whatsapp:hover { color: var(--whatsapp-dark); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- section heading with divider ---------- */
.section-heading { text-align: center; padding: 70px 24px 0; }
.section-heading h2 {
  font-size: clamp(30px, 5vw, 55px);
  text-transform: capitalize;
}
.section-heading__divider {
  width: 80px;
  height: 3px;
  background: var(--primary);
  margin: 18px auto 24px;
}
.section-heading h3 {
  max-width: 640px;
  margin: 0 auto;
  color: var(--primary);
  font-size: 18px;
  font-weight: 300;
  text-transform: none;
}

/* ---------- team grid ---------- */
.team-grid {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 190px));
  justify-content: center;
  gap: 28px;
}
.team-card { text-align: center; }
.team-card__photo {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.team-card:hover .team-card__photo img { transform: scale(1.08); }
.team-card__name {
  margin-top: 14px;
  font-size: 1.15em;
  line-height: 1.25;
}
.team-card__role {
  color: var(--ink);
  font-size: 14px;
  margin: 4px 0 0;
}

/* ---------- generic content sections ---------- */
.content-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}
.content-section h1 {
  font-size: clamp(32px, 5vw, 48px);
  text-align: center;
  margin-bottom: 32px;
}
.content-section .lead {
  font-size: 17px;
}
.practice-list {
  counter-reset: item;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.practice-list li {
  display: flex;
  gap: 18px;
}
.practice-list .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--primary);
  min-width: 40px;
}
.practice-list h3 { font-size: 20px; margin-bottom: 4px; }
.practice-list p { margin: 0; font-size: 15.5px; }

/* ---------- mission / vision ---------- */
.mv-section {
  background: var(--white);
  padding: 20px 24px 70px;
}
.mv-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.mv-grid h1 {
  font-size: 34px;
  text-align: left;
}
.mv-grid p { font-style: italic; color: var(--ink); }

.equipo-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.equipo-intro__seal { max-width: 260px; margin: 0 auto; opacity: 0.9; }

@media (max-width: 760px) {
  .mv-grid, .equipo-intro { grid-template-columns: 1fr; }
}

/* ---------- team detail page ---------- */
.profile-hero {
  max-width: 700px;
  margin: 0 auto;
  padding: 120px 24px 0;
  text-align: center;
}
.profile-photo {
  border: 1px solid var(--muted-2);
  border-radius: 8px;
  overflow: hidden;
}
.profile-photo img { display: block; width: 100%; height: auto; }
.profile-name {
  margin-top: 26px;
  font-size: clamp(28px, 5vw, 40px);
}

.profile-bio {
  background: var(--bg-soft-2);
  margin-top: 40px;
  padding: 50px 24px;
}
.profile-bio__cols {
  max-width: var(--max-width);
  margin: 0 auto;
  column-count: 2;
  column-gap: 50px;
}
.profile-bio__cols p { font-size: 15.5px; break-inside: avoid; }

.profile-diplomas {
  max-width: var(--max-width);
  margin: 24px auto 0;
}
.profile-diplomas p { font-size: 15.5px; }
.profile-diplomas ul {
  margin-top: 10px;
  padding-left: 20px;
  list-style: disc;
}
.profile-diplomas li { margin-bottom: 6px; font-size: 15px; }

.profile-contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 24px;
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
}
.profile-contact a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  text-align: center;
}
.profile-contact__glyph {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-contact__glyph svg { width: 100%; height: 100%; fill: currentColor; }
.profile-contact a.is-whatsapp .profile-contact__glyph { color: var(--whatsapp); }
.profile-contact a.is-email .profile-contact__glyph { color: var(--primary); }

@media (max-width: 700px) {
  .profile-bio__cols { column-count: 1; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 24px 20px;
}
.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.footer-logo { max-width: 200px; }
.footer-contact h2 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer-contact ul { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c8d5dc;
  font-size: 14.5px;
}
.footer-contact svg { width: 15px; height: 15px; fill: #c8d5dc; flex-shrink: 0; }
.footer-contact a:hover { color: var(--white); }
.footer-city { margin-top: 16px; color: #919191; }

.footer-social {
  max-width: var(--max-width);
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.12); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-credit {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #222;
  font-size: 13px;
  color: #777;
}
.footer-credit a { display: inline-flex; align-items: center; gap: 8px; color: #999; }
.footer-credit svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-contact li { justify-content: center; }
  .footer-logo { margin: 0 auto; }
}

/* ---------- floating whatsapp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  z-index: 400;
  transition: transform 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.08);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- contacto page ---------- */
.contact-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.contact-layout__photo { border-radius: 12px; overflow: hidden; }
.contact-card {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 46px;
  text-align: center;
}
.contact-card h2 { font-size: 30px; }
.contact-card p { color: var(--ink); }
.contact-info {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
}
.contact-info svg { width: 16px; height: 16px; fill: var(--primary); flex-shrink: 0; }
.contact-card .btn { margin: 28px auto 0; }

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout__photo { max-width: 420px; margin: 0 auto; }
  .contact-card { padding: 32px 24px; }
}
