/* ==========================================================================
   Estudio Jurídico España Cotrone — sistema de diseño compartido
   Estética inspirada en estudios de abogados premium: tipografía serif
   editorial + sans-serif limpia, paleta negro/blanco con acento azul,
   botones tipo píldora, paneles oscuros con tarjetas, mucho aire.
   ========================================================================== */

:root {
  --ink: #122740;          /* Navy del logo — marca principal (headers, botones, secciones oscuras) */
  --ink-soft: #1c3654;     /* variante más clara del azul noche (cards dentro de paneles oscuros) */
  --text: #1E232A;         /* Dark Charcoal — texto de cuerpo */
  --paper: #ffffff;
  --paper-soft: #f8f9fa;   /* Soft Slate Gray para alternar secciones */
  --muted: rgba(30,35,42,0.62);   /* texto de cuerpo sobre blanco (derivado del charcoal) */
  --muted-invert: #b7bdca;        /* texto secundario sobre azul noche */
  --line: #e6e5e2;
  --accent: #A5783C;       /* Dorado del logo — CTAs, badges, links de acento */
  --whatsapp: #25D366;
  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-card-sm: 14px;
  --maxw: 1160px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', Arial, 'Segoe UI', Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.placeholder-banner {
  background: #fff3cd;
  color: #664d03;
  text-align: center;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 13px;
  border-bottom: 2px dashed #e0b400;
  position: relative;
  z-index: 60;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 22px 32px;
  background: transparent;
  transition: background-color 0.35s ease, padding 0.35s ease, box-shadow .35s ease;
}
header.is-scrolled {
  background: rgb(17,30,56);
  padding: 14px 32px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand-mark .brand-logo {
  width: 76px; height: 76px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-mark .brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.3px;
  max-width: 260px;
}
.brand-name-sub {
  display: block;
  color: var(--accent);
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-left: 26px;
  margin-top: 2px;
}
header.on-light:not(.is-scrolled) .brand-mark,
header.on-light:not(.is-scrolled) .brand-mark .brand-name { color: var(--ink); }
header.on-light:not(.is-scrolled) nav.links a { color: rgba(17,39,64,0.72); }
header.on-light:not(.is-scrolled) nav.links a:hover { color: var(--ink); }
header.on-light:not(.is-scrolled) .btn-nav-contact { background: var(--ink); color: #fff; }
nav.links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 300;
}
nav.links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}
nav.links a:hover { color: #fff; }
.btn-nav-contact {
  background: rgba(255,255,255,0.95);
  color: var(--ink);
}
.btn-icon-contact {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  background: #BC9A63;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(165,120,60,0.22);
}
.btn-icon-contact:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0b1830; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #e64a28; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: rgba(17,30,56,0.35); }
.btn-outline-dark:hover { border-color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 18% 12%, rgba(165,120,60,0.18), transparent 42%),
    linear-gradient(150deg, #16233f 0%, #0b1220 60%, #05070d 100%);
  color: #fff;
  padding: 150px 32px 110px;
  margin-top: -86px; /* compensa el header sticky para quedar full-bleed */
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* motivo lineal sutil, evoca columnas de tribunal sin usar una foto */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 96px);
  pointer-events: none;
}

/* Variante clara del hero con foto de fondo (usada en index.html) */
.hero.hero-light {
  background:
    linear-gradient(100deg, rgba(248,249,250,0.96) 0%, rgba(248,249,250,0.90) 32%, rgba(248,249,250,0.62) 60%, rgba(248,249,250,0.40) 100%),
    url('hero-bg.jpg?v=20260821f');
  background-size: cover;
  background-position: center;
  color: var(--text);
}
.hero.hero-light::after {
  background-image: repeating-linear-gradient(90deg, rgba(17,39,64,0.04) 0 2px, transparent 2px 96px);
}
.hero.hero-light .kicker { color: rgba(17,39,64,0.65); }
.hero.hero-light h1 { color: var(--ink); }
.hero.hero-light .hero-lead { color: rgba(30,35,42,0.78); }
.hero.hero-light .hero-stat { border-top: 1px solid rgba(17,39,64,0.16); }
.hero.hero-light .hero-stat-num { color: var(--ink); }
.hero.hero-light .hero-stat-label { color: rgba(30,35,42,0.6); }

/* Variante clara del hero de infracciones/ — misma fórmula, otra foto */
.hero.hero-light.hero-multas {
  background:
    linear-gradient(100deg, rgba(248,249,250,0.96) 0%, rgba(248,249,250,0.90) 32%, rgba(248,249,250,0.60) 62%, rgba(248,249,250,0.38) 100%),
    url('hero-multas-bg.jpg');
  background-size: cover;
  background-position: center;
}
.hero.hero-multas h1 {
  font-size: clamp(2.9rem, 5.4vw, 4.8rem);
  max-width: 13ch;
}
.hero.hero-multas .hero-side h2 {
  color: rgba(30,35,42,0.82);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}
.hero .kicker {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: 0.2px;
  max-width: 15ch;
}
.hero-lead {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
  margin: 22px 0 32px;
}
.hero-side { text-align: right; }
.hero-side h2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.35;
  color: #f1f1f1;
  margin-bottom: 24px;
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-stat {
  text-align: right;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.1rem;
  color: #fff;
  line-height: 1.1;
}
.hero-stat-label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; max-width: none; }
  .hero-side { text-align: left; }
  .hero-stats { flex-direction: row; gap: 24px; margin-top: 36px; }
  .hero-stat { text-align: left; flex: 1; }
}

.coverage-strip {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  text-align: center;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: rgba(30,35,42,0.55);
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
section { padding: 96px 32px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper-soft);
  color: rgba(30,35,42,0.7);
  margin-bottom: 22px;
}
.eyebrow-badge.on-dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 18px;
}
.center { text-align: center; }
.section-sub {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 8px;
  font-size: 1.02rem;
}

/* ---------- Quiénes somos (dos columnas) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.mission-text p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.mission-text p:last-child { margin-bottom: 0; }
.photo-block {
  aspect-ratio: 4/3.2;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #111E38, #05070d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  padding: 20px;
  text-transform: uppercase;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Paneles oscuros con tarjetas (áreas de práctica, otros servicios) ---------- */
.dark-panel {
  background: var(--ink);
  border-radius: 24px;
  padding: 56px 40px;
  color: #fff;
}
.dark-panel .eyebrow-badge { display: block; width: fit-content; margin: 0 auto 30px; }
.dark-panel h2.section-title { color: #fff; }
.dark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.dark-card {
  background: var(--ink-soft);
  border-radius: var(--radius-card-sm);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.06);
}
.dark-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: #fff;
}
.dark-card p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--muted-invert);
  margin-bottom: 22px;
}
.dark-card.featured {
  background: linear-gradient(135deg, #16294d, #05070d);
  border-color: rgba(165,120,60,0.45);
}

/* ---------- Cards claras (jurisdicciones) ---------- */
.light-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.light-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card-sm);
  padding: 28px;
}
.light-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.light-card p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Equipo ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 40px;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(20,20,20,0.05);
}
.team-card .photo-block {
  aspect-ratio: 4/3.4;
  border-radius: 12px;
  margin-bottom: 20px;
}
.team-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.team-card .cred {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.team-card p.bio {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.team-card .pending {
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(30,35,42,0.4);
}

/* ---------- Pasos / cómo trabajamos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600;
  margin: 0 auto 16px; font-size: 1.15rem;
}
.step h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.step p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Contacto ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 40px 0 56px;
}
.contact-info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 10px;
  padding: 22px;
}
.contact-info-card.accent { border-top-color: var(--accent); }
.contact-info-card h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-info-card a, .contact-info-card span {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: none;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(20,20,20,0.06);
}
.form-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: rgba(30,35,42,0.55);
  background: var(--paper-soft);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 22px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-hint {
  display: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  background: #fff8ec;
  border: 1px solid #f0dbb0;
  color: #6b4f10;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: -8px;
  margin-bottom: 18px;
}
.field-hint a { color: var(--accent); font-weight: 600; }
.form-disclaimer {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: rgba(30,35,42,0.45);
  margin-top: 16px;
  text-align: center;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--muted-invert);
  padding: 44px 32px 32px;
  font-family: var(--sans);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-inner .footer-logo {
  width: 52px; height: 52px;
  object-fit: contain;
}
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-fine { font-size: 12.5px; color: rgba(255,255,255,0.4); }

.fab-whatsapp {
  position: fixed; bottom: 22px; right: 22px;
  background: var(--whatsapp); color: #fff;
  width: 58px; height: 58px; border-radius: 999px;
  display: flex; align-items: center;
  padding-left: 15px;
  text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,0.25); z-index: 50;
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: width 0.38s cubic-bezier(.4,0,.2,1), transform 0.28s cubic-bezier(.4,0,.2,1), box-shadow 0.28s ease;
}
.fab-whatsapp.fab-visible {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: width 0.38s cubic-bezier(.4,0,.2,1), transform 0.55s cubic-bezier(.34,1.56,.64,1), box-shadow 0.28s ease, opacity 0.5s ease;
}
.fab-whatsapp:hover, .fab-whatsapp:focus-visible {
  width: 196px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.32);
  transform: translateY(-3px) scale(1.04);
}
.fab-whatsapp:active { transform: translateY(-1px) scale(0.98); }
.fab-whatsapp-icon { width: 28px; height: 28px; flex-shrink: 0; }
.fab-whatsapp-text {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 600;
  max-width: 0; opacity: 0;
  overflow: hidden;
  transition: max-width 0.38s cubic-bezier(.4,0,.2,1) 0.05s, opacity 0.22s ease 0.12s, margin-left 0.38s cubic-bezier(.4,0,.2,1) 0.05s;
  margin-left: 0;
}
.fab-whatsapp:hover .fab-whatsapp-text,
.fab-whatsapp:focus-visible .fab-whatsapp-text {
  max-width: 140px; opacity: 1; margin-left: 10px;
}
.fab-whatsapp-ring {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--whatsapp);
  opacity: 0; pointer-events: none;
}
.fab-whatsapp.fab-visible .fab-whatsapp-ring {
  animation: fab-pulse 2.4s cubic-bezier(0,0,.3,1) 1.2s 3;
}
@keyframes fab-pulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.85); }
}
@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp, .fab-whatsapp-text, .fab-whatsapp-ring {
    transition: opacity 0.3s ease !important; animation: none !important;
  }
  .fab-whatsapp:hover { width: 58px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  nav.links { display: none; }
  .nav-wrap { flex-wrap: nowrap; }
  header .nav-wrap > .btn,
  header .nav-wrap > .btn-icon-contact { margin-left: auto; }
  .brand-mark { min-width: 0; }
  .brand-mark .brand-logo { width: 56px; height: 56px; }
  .brand-mark .brand-name { font-size: 15px; max-width: none; }
  .brand-name-sub { margin-left: 13px; }
  .btn-icon-contact { width: 34px; height: 34px; font-size: 14px; }
  section { padding: 64px 20px; }
  .hero { padding: 130px 20px 80px; }
  .hero h1 { font-size: 2.1rem; }
  .hero.hero-multas h1 { font-size: 2.3rem; max-width: none; }
  .dark-panel { padding: 40px 22px; }
}
