/* ============================================================
   Estudio Jurídico Benzaquen — hoja de estilos
   Sistema: fondo carbón cálido, acento único azul acero, serif
   editorial para títulos (Playfair Display) + sans para cuerpo
   (Work Sans). Tema único y oscuro por decisión de marca.
   ============================================================ */

:root {
  /* Marca */
  --ink-950: #0f0c0b;
  --ink-900: #17110f;
  --ink-850: #1d1613;
  --ink-800: #251c18;
  --line: #362a22;
  --line-soft: #2a201a;

  --paper: #f4ece3;
  --muted: #b6a89c;
  --muted-dim: #8a7c70;

  --accent: #26374a;
  --accent-strong: #3e4a63;
  --accent-soft: rgba(62, 74, 99, 0.18);
  --accent-contrast: #f4ece3;

  --surface: var(--ink-950);
  --surface-raised: var(--ink-900);
  --surface-panel: var(--ink-850);
  --text: var(--paper);
  --text-muted: var(--muted);
  --border: var(--line);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, sans-serif;

  --max-w: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@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(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: var(--radius-sm);
  z-index: 200;
}

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

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(20, 28, 38, 0.7);
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 12, 11, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(15, 12, 11, 0.92);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
  transition: height 0.35s ease;
}

@media (min-width: 1024px) {
  .site-header.is-scrolled .header-inner {
    height: 60px;
  }
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--paper);
}

.brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
}

.nav-desktop {
  display: none;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    flex: 1;
    justify-content: center;
  }

  .nav-desktop a {
    position: relative;
    font-size: 0.92rem;
    color: var(--muted);
    white-space: nowrap;
    padding-bottom: 0.3rem;
    transition: color 0.2s ease;
  }

  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--accent-strong);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-desktop a:hover {
    color: var(--paper);
  }

  .nav-desktop a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-actions .btn-primary {
  display: none;
}

@media (min-width: 960px) {
  .header-actions .btn-primary {
    display: inline-flex;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle i {
  font-size: 1.3rem;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: var(--ink-950);
}

.mobile-menu.is-open {
  display: block;
}

@media (min-width: 960px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0 1.25rem;
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 24px;
  font-size: 1rem;
  color: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 6rem 0 3.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(0.4) contrast(1.08) brightness(0.68);
  transform: scale(1.08);
  animation: hero-ken-burns 16s ease-out forwards;
}

@keyframes hero-ken-burns {
  from {
    transform: scale(1.18);
  }
  to {
    transform: scale(1.02);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 12, 11, 0.45) 0%, rgba(15, 12, 11, 0.5) 35%, rgba(15, 12, 11, 0.97) 92%),
    linear-gradient(90deg, rgba(15, 12, 11, 0.88) 0%, rgba(15, 12, 11, 0.25) 55%, rgba(15, 12, 11, 0.5) 100%);
}

.hero-content {
  max-width: 640px;
  animation: hero-content-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

@keyframes hero-content-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    max-width: 720px;
  }
}

.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  color: var(--paper);
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: clamp(3rem, 4.2vw, 4.6rem);
  }
}

.hero-title em {
  font-style: italic;
  color: var(--accent-strong);
}

.hero-subtext {
  margin-top: 1.25rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .hero-subtext {
    font-size: 1.2rem;
    max-width: 50ch;
  }
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}


/* ---------- Franja de cobertura ---------- */

.coverage {
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-soft);
  padding: 2.75rem 0;
}

.coverage-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

.coverage-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paper);
  flex-shrink: 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.chip:hover {
  border-color: var(--accent-strong);
  color: var(--paper);
  transform: translateY(-1px);
}

.chip i {
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.chip-strong {
  border-color: var(--accent);
  color: var(--paper);
  background: var(--accent-soft);
}

/* ---------- Secciones genéricas ---------- */

section {
  padding: 5.5rem 0;
}

@media (min-width: 1024px) {
  section {
    padding: 8rem 0;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .section-head {
    margin-bottom: 4rem;
  }
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--paper);
}

@media (min-width: 1024px) {
  .section-head h2 {
    font-size: clamp(2.3rem, 2.8vw, 3rem);
  }
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 60ch;
}

/* ---------- Servicios ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: 6fr 6fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.service-panel {
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

@media (min-width: 1024px) {
  .service-panel:hover {
    border-color: var(--muted-dim);
    transform: translateY(-2px);
  }
}

.service-panel-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-panel h3 {
  font-size: 1.5rem;
  color: var(--paper);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.service-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.service-list i {
  color: var(--accent-strong);
  font-size: 1.05rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.service-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 260px;
}

@media (min-width: 1024px) {
  .service-media {
    min-height: 620px;
    position: sticky;
    top: 96px;
    order: -1;
  }
}

.service-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.08) brightness(0.8);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-media:hover img {
  transform: scale(1.04);
}

.service-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(0deg, rgba(15, 12, 11, 0.92), transparent);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Derecho Deportivo ---------- */

.sport {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, var(--accent-soft), transparent),
    var(--ink-900);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.sport-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .sport-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sport-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-panel);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.sport-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-strong);
}

.sport-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 1.6rem;
}

.sport-card h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--paper);
}

.sport-card p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.sport-cta {
  margin-top: 2.75rem;
}

/* ---------- Sobre el estudio ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
  }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 6fr 6fr;
    gap: 4rem;
  }
}

.about-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

@media (min-width: 1024px) {
  .about-media {
    aspect-ratio: 3 / 4;
  }
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.3) contrast(1.08) brightness(0.9);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-media:hover img {
  transform: scale(1.045);
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--paper);
}

@media (min-width: 1024px) {
  .about-copy h2 {
    font-size: clamp(2.3rem, 2.8vw, 3rem);
  }
}

.about-copy p {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 62ch;
}

.value-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line-soft);
}

.value-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.value-item i {
  color: var(--accent-strong);
  font-size: 1.4rem;
}

.value-item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paper);
  font-weight: 700;
}

.value-item p {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 58ch;
}

@media (min-width: 1024px) {
  .value-list {
    border-top: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .value-item {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-panel);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  }

  .value-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-strong);
  }

  .value-item i {
    font-size: 1.9rem;
  }

  .value-item h4 {
    margin-top: 1.1rem;
    font-size: 1.2rem;
  }

  .value-item p {
    max-width: none;
  }
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-panel);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: var(--muted-dim);
}

.faq-item[open] {
  border-color: var(--accent-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--paper);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  color: var(--accent-strong);
  font-size: 1.2rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item[open] summary i {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--paper);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--ink-900);
  color: var(--paper);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 1px;
  border-color: var(--accent-strong);
}

.field-help {
  font-size: 0.82rem;
  color: var(--muted-dim);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted-dim);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-strong);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.contact-info {
  background: var(--surface-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: fit-content;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-item i {
  font-size: 1.3rem;
  color: var(--accent-strong);
  margin-top: 0.15rem;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  font-weight: 600;
}

.contact-info-item p,
.contact-info-item a {
  margin-top: 0.3rem;
  color: var(--paper);
  font-size: 1rem;
}

.contact-info-item a {
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--accent-strong);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 3rem 0 2rem;
  background: var(--ink-900);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.6rem;
  color: var(--muted-dim);
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--paper);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted-dim);
}

/* ---------- Botón flotante de WhatsApp (mobile) ---------- */

.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
}

.sticky-cta .btn {
  width: 100%;
}

@media (min-width: 960px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- Revelado al hacer scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
