/* ============ RESET & BASE ============ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      /* Light palette */
      --bg: #f8f6f0;
      --bg-elevated: #ffffff;
      --bg-alt: #f1eee5;
      --text: #1a1d24;
      --text-muted: #555c6b;
      --text-dim: #8a8f9a;
      --border: #ddd8cc;
      --border-strong: #bdb6a4;
      /* Dark palette (warm tones — harmonize with cream) */
      --bg-dark: #15120e;
      --bg-dark-elevated: #1d1914;
      --bg-bridge: #221d16;
      --text-light: #f4f0e8;
      --text-light-muted: rgba(244, 240, 232, 0.7);
      --text-light-dim: rgba(244, 240, 232, 0.42);
      --border-dark: rgba(244, 240, 232, 0.12);
      --border-dark-strong: rgba(244, 240, 232, 0.26);
      /* Accent (navy, single tone for whole site) */
      --accent: #1c2a3e;
      --accent-bright: #2c4063;
      --accent-tint: rgba(28, 42, 62, 0.08);
      /* Type */
      --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
      --sans: 'Inter', system-ui, -apple-system, sans-serif;
      --radius: 1px;
      --transition: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    html { scroll-behavior: smooth; overflow-x: hidden; }
    body {
      font-family: var(--sans);
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
      font-weight: 400;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; transition: color var(--transition); }

    /* ============ TYPOGRAPHY ============ */
    h1, h2, h3, h4 {
      font-family: var(--serif);
      font-weight: 500;
      letter-spacing: 0;
      line-height: 1.18;
      color: var(--text);
    }
    .dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: var(--text-light); }

    /* Texto de cuerpo justificado por defecto */
    .hero-lead,
    .section-header p,
    .servicio-card p,
    .articulo-card p,
    .fallo-card p,
    .abogado-bio,
    .contacto-info > p,
    .footer-brand p {
      text-align: justify;
      hyphens: auto;
      -webkit-hyphens: auto;
      -ms-hyphens: auto;
    }
    /* En móvil quitamos el justify de cards muy estrechos para evitar separaciones feas */
    @media (max-width: 480px) {
      .servicio-card p,
      .articulo-card p,
      .fallo-card p,
      .section-header p {
        text-align: left;
      }
    }

    .eyebrow {
      font-family: var(--sans);
      font-size: 0.7rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.28em;
      color: var(--accent);
      margin-bottom: 1.5rem;
      display: inline-block;
    }
    .dark-section .eyebrow { color: var(--text-light-muted); }

    /* ============ LAYOUT ============ */
    .container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 2rem;
    }
    section { padding: 7.5rem 0; position: relative; }
    .dark-section { background: var(--bg-dark); color: var(--text-light); }

    /* ============ NAVBAR ============ */
    .navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      padding: 1.5rem 0;
      transition: background var(--transition), padding var(--transition), border-color var(--transition), color var(--transition);
      border-bottom: 1px solid transparent;
      color: var(--text-light);
    }
    .navbar.scrolled {
      background: rgba(248, 246, 240, 0.95);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      padding: 1rem 0;
      border-bottom-color: var(--border);
      color: var(--text);
    }
    .nav-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .logo {
      display: inline-flex;
      align-items: baseline;
      gap: 0.85rem;
      line-height: 1;
      color: inherit;
      transition: opacity var(--transition);
    }
    .logo:hover { opacity: 0.7; }
    .logo-name {
      font-family: var(--serif);
      font-size: 1.4rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: inherit;
    }
    .logo-divider {
      display: inline-block;
      width: 1px;
      height: 14px;
      background: currentColor;
      opacity: 0.4;
    }
    .logo-sub {
      font-family: var(--sans);
      font-size: 0.6rem;
      font-weight: 500;
      letter-spacing: 0.4em;
      text-transform: uppercase;
      color: inherit;
      opacity: 0.85;
    }
    .navbar.scrolled .logo-name { font-size: 1.3rem; }

    .nav-links {
      display: flex;
      gap: 2.25rem;
      list-style: none;
      align-items: center;
    }
    .nav-links a {
      font-size: 0.82rem;
      font-weight: 400;
      color: inherit;
      opacity: 0.75;
      position: relative;
      padding: 0.5rem 0;
    }
    .nav-links a:hover { opacity: 1; }
    .nav-cta {
      padding: 0.85rem 1.7rem;
      border: 1px solid currentColor;
      font-size: 0.78rem !important;
      text-transform: uppercase;
      letter-spacing: 0.2em;
      font-weight: 500;
      opacity: 1 !important;
      transition: all var(--transition);
    }
    .navbar:not(.scrolled) .nav-cta:hover {
      background: var(--text-light);
      color: var(--bg-dark);
    }
    .navbar.scrolled .nav-cta {
      border-color: var(--accent);
      color: var(--accent);
    }
    .navbar.scrolled .nav-cta:hover {
      background: var(--accent);
      color: var(--bg);
    }
    .menu-toggle {
      display: none;
      background: none;
      border: none;
      color: inherit;
      cursor: pointer;
      width: 28px;
      height: 22px;
      position: relative;
    }
    .menu-toggle span {
      display: block;
      width: 100%;
      height: 1.5px;
      background: currentColor;
      position: absolute;
      left: 0;
      transition: transform 0.3s, top 0.3s, opacity 0.3s;
    }
    .menu-toggle span:nth-child(1) { top: 4px; }
    .menu-toggle span:nth-child(2) { top: 10px; }
    .menu-toggle span:nth-child(3) { top: 16px; }
    .menu-toggle.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

    /* ============ BUTTONS ============ */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      padding: 1rem 2rem;
      font-family: var(--sans);
      font-size: 0.78rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.22em;
      cursor: pointer;
      transition: all var(--transition);
      border-radius: var(--radius);
      border: 1px solid transparent;
      text-align: center;
    }
    .btn svg { width: 14px; height: 14px; }
    /* Primary on light bg */
    .btn-primary {
      background: var(--accent);
      color: var(--bg);
      border-color: var(--accent);
    }
    .btn-primary:hover {
      background: var(--accent-bright);
      border-color: var(--accent-bright);
    }
    /* Ghost on light bg */
    .btn-ghost {
      background: transparent;
      color: var(--text);
      border-color: var(--border-strong);
    }
    .btn-ghost:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    /* On dark bg */
    .dark-section .btn-primary {
      background: var(--text-light);
      color: var(--bg-dark);
      border-color: var(--text-light);
    }
    .dark-section .btn-primary:hover {
      background: #ffffff;
      border-color: #ffffff;
    }
    .dark-section .btn-ghost {
      color: var(--text-light);
      border-color: var(--border-dark-strong);
    }
    .dark-section .btn-ghost:hover {
      border-color: var(--text-light);
      color: var(--text-light);
    }

    /* ============ HERO ============ */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      position: relative;
      overflow: hidden;
      padding: 9rem 1.5rem 5rem;
      background-color: var(--bg-dark);
      color: var(--text-light);
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      background-image: url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=2400&q=80');
      background-size: cover;
      background-position: center 40%;
      filter: grayscale(0.7) brightness(0.45) contrast(1.05) sepia(0.15);
      z-index: 0;
    }
    .hero-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
      background:
        linear-gradient(180deg,
          rgba(21, 18, 14, 0.55) 0%,
          rgba(21, 18, 14, 0.45) 40%,
          rgba(21, 18, 14, 0.85) 85%,
          var(--bg-bridge) 100%);
    }
    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 920px;
      margin: 0 auto;
    }
    .hero-eyebrow {
      font-family: var(--sans);
      font-size: 0.72rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.45em;
      color: var(--text-light-muted);
      margin-bottom: 2.5rem;
      display: inline-block;
    }
    .hero-title {
      font-family: var(--serif);
      font-weight: 400;
      line-height: 1;
      margin: 0 0 2.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
    }
    .hero-firm {
      font-size: clamp(2.6rem, 8vw, 6rem);
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--text-light);
      text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
    }
    .hero-firm-sub {
      display: inline-flex;
      align-items: center;
      gap: 1.1rem;
      font-family: var(--sans);
      font-size: clamp(0.7rem, 1vw, 0.82rem);
      font-weight: 500;
      letter-spacing: 0.65em;
      text-transform: uppercase;
      color: var(--text-light-muted);
    }
    .hero-firm-sub::before,
    .hero-firm-sub::after {
      content: '';
      display: inline-block;
      width: 56px;
      height: 1px;
      background: var(--text-light-muted);
    }
    .hero-lead {
      font-family: var(--serif);
      font-size: clamp(1.1rem, 1.45vw, 1.3rem);
      color: var(--text-light-muted);
      max-width: 660px;
      margin: 0 auto 3rem;
      font-weight: 400;
      line-height: 1.6;
      font-style: italic;
    }
    .hero-actions {
      display: flex;
      gap: 1.25rem;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
    }
    /* Botones del hero: más prominentes que el resto del sitio */
    .hero-actions .btn {
      padding: 1.25rem 2.75rem;
      font-size: 0.85rem;
      letter-spacing: 0.24em;
      gap: 0.85rem;
    }
    .hero-actions .btn-primary {
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    }
    .hero-actions .btn-primary:hover {
      box-shadow: 0 6px 32px rgba(0, 0, 0, 0.28);
      transform: translateY(-1px);
    }
    .hero-actions .btn svg {
      width: 16px;
      height: 16px;
    }
    @media (max-width: 480px) {
      .hero-actions .btn {
        padding: 1.1rem 2rem;
        font-size: 0.78rem;
        letter-spacing: 0.2em;
      }
    }
    .hero-scroll {
      position: absolute;
      bottom: 2rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
      color: var(--text-light-muted);
      font-family: var(--sans);
      font-size: 0.6rem;
      font-weight: 500;
      letter-spacing: 0.45em;
      text-transform: uppercase;
    }
    .hero-scroll-line {
      width: 1px;
      height: 42px;
      background: linear-gradient(180deg, transparent, var(--text-light-muted));
      position: relative;
      overflow: hidden;
    }
    .hero-scroll-line::after {
      content: '';
      position: absolute;
      top: -100%;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(180deg, transparent, var(--text-light));
      animation: scrollPulse 2.4s ease-in-out infinite;
    }
    @keyframes scrollPulse {
      0%   { top: -100%; }
      100% { top: 100%; }
    }

    /* ============ TRANSITION BAND (dark↔light bridge) ============ */
    section.transition-band {
      background: var(--bg-bridge);
      padding: 2.5rem 0;
      position: relative;
    }
    section.transition-band.top { border-bottom: 1px solid var(--border); }
    section.transition-band.bottom { border-top: 1px solid var(--border); }
    .transition-inner {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.75rem;
    }
    .transition-rule {
      flex: 1;
      max-width: 120px;
      height: 1px;
      background: rgba(244, 240, 232, 0.22);
    }
    .transition-mark {
      font-family: var(--sans);
      font-size: 0.68rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.42em;
      color: var(--text-light-muted);
      white-space: nowrap;
    }
    .transition-mark span {
      margin: 0 0.6em;
      opacity: 0.5;
    }

    /* ============ SECTION HEADER ============ */
    .section-header {
      max-width: 760px;
      margin: 0 auto 5rem;
      text-align: center;
    }
    .section-header.left { text-align: left; margin-left: 0; }
    .section-header h2 {
      font-size: clamp(2.2rem, 4vw, 3.4rem);
      margin-bottom: 1.25rem;
      font-weight: 500;
    }
    .section-header p {
      color: var(--text-muted);
      font-size: 1.05rem;
      max-width: 600px;
      margin: 0 auto;
    }
    .dark-section .section-header p { color: var(--text-light-muted); }

    /* ============ SERVICIOS ============ */
    .servicios { background: var(--bg); }
    .servicios-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
    }
    .servicio-card {
      background: var(--bg-elevated);
      padding: 2.75rem 2.25rem;
      transition: all var(--transition);
      position: relative;
    }
    .servicio-card:hover {
      background: var(--accent-tint);
    }
    .servicio-num {
      font-family: var(--serif);
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--accent);
      letter-spacing: 0.05em;
      margin-bottom: 1.5rem;
      display: block;
    }
    .servicio-card h3 {
      font-size: 1.55rem;
      margin-bottom: 1rem;
      font-weight: 500;
    }
    .servicio-card p {
      color: var(--text-muted);
      font-size: 0.95rem;
      margin-bottom: 1.25rem;
    }
    .servicio-card ul {
      list-style: none;
      margin-top: 1rem;
    }
    .servicio-card li {
      font-size: 0.87rem;
      color: var(--text-muted);
      padding: 0.35rem 0;
      padding-left: 1.25rem;
      position: relative;
    }
    .servicio-card li::before {
      content: '·';
      position: absolute;
      left: 0;
      top: 0.2rem;
      color: var(--accent);
      font-weight: 700;
      font-size: 1.2rem;
      line-height: 1;
    }

    /* ============ EQUIPO / LIDERAZGO ============ */
    .equipo {
      background: var(--bg-alt);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .equipo-layout {
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 4.5rem;
      align-items: start;
      max-width: 1080px;
      margin: 0 auto;
    }
    .abogado-foto {
      width: 100%;
      aspect-ratio: 3 / 4;
      background: linear-gradient(135deg, #e8e3d5, #d9d2bf);
      border: 1px solid var(--border);
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .abogado-foto img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
      z-index: 2;
    }
    .abogado-initials {
      font-family: var(--serif);
      font-size: 5rem;
      color: var(--accent);
      font-weight: 400;
      opacity: 0.35;
      letter-spacing: 0.04em;
      position: relative;
      z-index: 1;
    }
    .abogado-info .eyebrow { margin-bottom: 1rem; }
    .abogado-info h3 {
      font-size: clamp(2rem, 3.2vw, 2.6rem);
      margin-bottom: 0.5rem;
      font-weight: 500;
    }
    .abogado-rol {
      font-family: var(--sans);
      font-size: 0.78rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.2em;
      margin-bottom: 2rem;
      display: block;
    }
    .abogado-bio {
      color: var(--text-muted);
      font-size: 1rem;
      margin-bottom: 1.25rem;
      line-height: 1.7;
    }
    .abogado-credenciales {
      margin-top: 2rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
      list-style: none;
    }
    .abogado-credenciales li {
      padding: 0.5rem 0;
      font-size: 0.92rem;
      color: var(--text-muted);
      display: flex;
      gap: 0.75rem;
    }
    .abogado-credenciales li::before {
      content: '—';
      color: var(--accent);
      flex-shrink: 0;
    }

    /* ============ PUBLICACIONES / NOVEDADES ============ */
    .publicaciones { background: var(--bg); }
    .articulos-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 0;
      border-top: 1px solid var(--border);
      border-left: 1px solid var(--border);
    }
    .articulo-card {
      background: var(--bg);
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 2.5rem 2.25rem;
      transition: all var(--transition);
      display: flex;
      flex-direction: column;
    }
    .articulo-card:hover {
      background: var(--bg-elevated);
    }
    .articulo-meta {
      display: flex;
      gap: 0.9rem;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 1.5rem;
      font-family: var(--sans);
      font-size: 0.66rem;
      text-transform: uppercase;
      letter-spacing: 0.22em;
    }
    .articulo-fecha { color: var(--text-dim); }
    .articulo-tag {
      color: var(--accent);
      padding: 0.3rem 0.7rem;
      border: 1px solid var(--border-strong);
      letter-spacing: 0.18em;
    }
    .articulo-card h3 {
      font-size: 1.4rem;
      margin-bottom: 0.9rem;
      line-height: 1.3;
      font-weight: 500;
    }
    .articulo-card p {
      color: var(--text-muted);
      font-size: 0.95rem;
      flex: 1;
      margin-bottom: 1.5rem;
    }
    .articulo-link {
      font-family: var(--sans);
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.25em;
      color: var(--accent);
      font-weight: 500;
      padding-bottom: 0.3rem;
      border-bottom: 1px solid var(--accent);
      align-self: flex-start;
      transition: all var(--transition);
    }
    .articulo-link:hover {
      color: var(--accent-bright);
      transform: translateX(2px);
    }
    .publicaciones-footer {
      margin-top: 3.5rem;
      text-align: center;
    }

    /* ============ JURISPRUDENCIA ============ */
    .jurisprudencia {
      background: var(--bg-alt);
      border-top: 1px solid var(--border);
    }
    .fallos-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      max-width: 920px;
      margin: 0 auto;
    }
    .fallo-card {
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent);
      padding: 2.25rem 2.5rem;
      transition: all var(--transition);
    }
    .fallo-card:hover {
      border-color: var(--border-strong);
      transform: translateX(4px);
    }
    .fallo-header {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem 1.75rem;
      align-items: center;
      margin-bottom: 1rem;
    }
    .fallo-tribunal {
      font-family: var(--sans);
      font-size: 0.7rem;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.24em;
      font-weight: 500;
    }
    .fallo-fecha {
      font-family: var(--sans);
      font-size: 0.72rem;
      color: var(--text-dim);
      letter-spacing: 0.1em;
    }
    .fallo-card h3 {
      font-size: 1.45rem;
      margin-bottom: 0.85rem;
      line-height: 1.3;
      font-weight: 500;
    }
    .fallo-card p {
      color: var(--text-muted);
      font-size: 0.96rem;
      margin-bottom: 1.25rem;
    }

    /* ============ CONTACTO (light) ============ */
    .contacto {
      background: var(--bg-alt);
      border-top: 1px solid var(--border);
      position: relative;
    }
    .contacto-layout {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 5rem;
      align-items: start;
    }
    .contacto-info h2 {
      font-size: clamp(2rem, 3.5vw, 2.8rem);
      margin-bottom: 1.5rem;
      color: var(--text);
      font-weight: 500;
    }
    .contacto-info > p {
      color: var(--text-muted);
      margin-bottom: 2.5rem;
      font-size: 1rem;
    }
    .contacto-details {
      display: flex;
      flex-direction: column;
      gap: 1.75rem;
      margin-top: 2.5rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--border);
    }
    .contacto-item {
      display: flex;
      gap: 1.25rem;
      align-items: flex-start;
    }
    .contacto-item-icon {
      width: 36px;
      height: 36px;
      border: 1px solid var(--border-strong);
      color: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .contacto-item-icon svg { width: 16px; height: 16px; }
    .contacto-item-label {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.22em;
      color: var(--accent);
      margin-bottom: 0.3rem;
      font-weight: 500;
    }
    .contacto-item-value {
      color: var(--text);
      font-size: 0.95rem;
    }

    /* ============ FORMULARIO (light) ============ */
    .form-wrap {
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      padding: 3rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    }
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }
    .form-group { display: flex; flex-direction: column; }
    .form-group.full { grid-column: 1 / -1; }
    .form-group label {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.22em;
      color: var(--text-muted);
      margin-bottom: 0.6rem;
      font-weight: 500;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--border-strong);
      padding: 0.8rem 0;
      color: var(--text);
      font-family: var(--sans);
      font-size: 0.95rem;
      font-weight: 400;
      transition: border-color var(--transition);
      outline: none;
    }
    .form-group input::placeholder,
    .form-group textarea::placeholder { color: var(--text-dim); }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-bottom-color: var(--accent);
    }
    .form-group textarea {
      resize: vertical;
      min-height: 110px;
    }
    .form-group select {
      appearance: none;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231c2a3e' stroke-width='1.5' fill='none'/></svg>");
      background-repeat: no-repeat;
      background-position: right 0 center;
      padding-right: 2rem;
    }
    .form-group select option {
      background: var(--bg-elevated);
      color: var(--text);
    }
    .form-submit {
      margin-top: 1rem;
      width: 100%;
      justify-content: center;
    }
    .form-note {
      grid-column: 1 / -1;
      font-size: 0.74rem;
      color: var(--text-dim);
      text-align: center;
      margin-top: 0.5rem;
    }
    .form-success {
      grid-column: 1 / -1;
      display: none;
      padding: 1rem;
      border: 1px solid var(--accent);
      background: var(--accent-tint);
      color: var(--accent);
      text-align: center;
      font-size: 0.9rem;
    }
    .form-success.visible { display: block; }
    .form-error {
      grid-column: 1 / -1;
      display: none;
      padding: 1rem;
      border: 1px solid #c2474a;
      background: rgba(194, 71, 74, 0.06);
      color: #a83a3d;
      text-align: center;
      font-size: 0.9rem;
    }
    .form-error.visible { display: block; }
    .honeypot {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    /* ============ FOOTER ============ */
    footer {
      background: var(--bg-dark);
      color: var(--text-light-muted);
      padding: 4rem 0 2rem;
      border-top: 1px solid var(--border-dark);
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 3rem;
      margin-bottom: 3rem;
    }
    .footer-brand .footer-logo {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }
    .footer-logo-name {
      font-family: var(--serif);
      font-size: 1.25rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-light);
    }
    .footer-logo-sub {
      font-family: var(--sans);
      font-size: 0.6rem;
      font-weight: 500;
      letter-spacing: 0.5em;
      text-transform: uppercase;
      color: var(--text-light-muted);
    }
    .footer-brand p {
      font-size: 0.9rem;
      color: var(--text-light-muted);
      max-width: 320px;
      line-height: 1.7;
    }
    .footer-col-title {
      font-family: var(--sans);
      font-size: 0.7rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.22em;
      color: var(--text-light);
      margin-bottom: 1.25rem;
    }
    .footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
    }
    .footer-col a, .footer-col li {
      font-size: 0.88rem;
      color: var(--text-light-muted);
      transition: color var(--transition);
    }
    .footer-col a:hover { color: var(--text-light); }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 2rem;
      border-top: 1px solid var(--border-dark);
      flex-wrap: wrap;
      gap: 1rem;
    }
    .footer-meta {
      font-size: 0.8rem;
      color: var(--text-light-dim);
    }
    .footer-social {
      display: flex;
      gap: 0.6rem;
    }
    .footer-social a {
      width: 34px;
      height: 34px;
      border: 1px solid var(--border-dark);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-light-muted);
      transition: all var(--transition);
    }
    .footer-social a:hover {
      color: var(--text-light);
      border-color: var(--border-dark-strong);
    }
    .footer-social svg { width: 14px; height: 14px; }

    /* ============ REVEAL ANIMATION ============ */
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ============ RESPONSIVE ============ */
    @media (max-width: 900px) {
      section { padding: 5rem 0; }
      .contacto-layout { grid-template-columns: 1fr; gap: 3rem; }
      .form-wrap { padding: 2rem 1.5rem; }
      .form-grid { grid-template-columns: 1fr; }
      .equipo-layout { grid-template-columns: 1fr; gap: 2.5rem; max-width: 540px; }
      .abogado-foto { max-width: 360px; margin: 0 auto; }
      .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
      .footer-brand { grid-column: 1 / -1; }
      .hero-firm-sub::before, .hero-firm-sub::after { width: 32px; }
    }
    @media (max-width: 720px) {
      .menu-toggle { display: block; z-index: 1001; }
      .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #f8f6f0;
        background-color: var(--bg);
        color: var(--text);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 999;
        opacity: 1;
      }
      .nav-links.open { transform: translateX(0); }
      .nav-links a { font-size: 1.2rem; opacity: 1; color: var(--text); }
      .nav-links .nav-cta { color: var(--accent); border-color: var(--accent); }
      .container { padding: 0 1.25rem; }
      .hero { padding-top: 8rem; }
      .footer-grid { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; text-align: center; }
      .logo-name { font-size: 1.1rem; letter-spacing: 0.15em; }
      .logo-sub { font-size: 0.55rem; letter-spacing: 0.35em; }
      /* Transition bands: permitir wrap y ocultar las hairlines en mobile */
      .transition-mark {
        white-space: normal;
        text-align: center;
        font-size: 0.58rem;
        letter-spacing: 0.2em;
        line-height: 1.8;
      }
      .transition-rule { display: none; }
      .transition-inner { gap: 0; padding: 0 0.5rem; }
      /* Hero firm: reducir letter-spacing y font para que entre en pantallas estrechas */
      .hero-firm {
        font-size: clamp(1.7rem, 8.5vw, 3rem);
        letter-spacing: 0.04em;
      }
      .hero-firm-sub {
        font-size: 0.6rem;
        letter-spacing: 0.5em;
      }
      .hero-firm-sub::before, .hero-firm-sub::after { width: 24px; }
      /* Reducir padding lateral en cards de servicios en pantallas estrechas */
      .servicio-card { padding: 2rem 1.5rem; }
      .articulo-card { padding: 2rem 1.5rem; }
      .fallo-card { padding: 1.75rem 1.5rem; }
      /* Footer: pequeño ajuste en espaciado para evitar apretones */
      .footer-grid { gap: 2rem; }
    }
    @media (max-width: 380px) {
      .hero-firm {
        font-size: clamp(1.5rem, 7.5vw, 2rem);
        letter-spacing: 0.02em;
      }
      .hero-firm-sub::before, .hero-firm-sub::after { width: 18px; }
      .transition-mark { font-size: 0.54rem; letter-spacing: 0.15em; }
    }

/* ============ INNER PAGES (novedades, jurisprudencia) ============ */
.page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
}
.page-header .eyebrow { color: var(--accent); }
.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.page-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: justify;
  hyphens: auto;
}
.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  margin-bottom: 2.5rem;
  transition: color var(--transition);
}
.page-back-link:hover { color: var(--accent); }
.page-back-link svg { width: 14px; height: 14px; }

.page-content {
  background: var(--bg);
  padding: 5rem 0 6rem;
}

.page-cta {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 6rem 0;
  text-align: center;
}
.page-cta h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 2rem;
  font-weight: 500;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.page-cta p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

@media (max-width: 720px) {
  .page-header { padding: 8rem 0 4rem; }
  .page-content { padding: 3rem 0 4rem; }
  .page-cta { padding: 4rem 0; }
  .page-header p { text-align: left; }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-dark-strong);
  z-index: 998;
  max-width: 720px;
  width: calc(100% - 3rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
  from { transform: translate(-50%, 120%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.cookie-banner.hidden { display: none; }
.cookie-banner p {
  margin: 0;
  flex: 1;
  color: var(--text-light-muted);
  line-height: 1.5;
}
.cookie-banner a {
  color: var(--text-light);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-banner button {
  background: var(--text-light);
  color: var(--bg-dark);
  border: none;
  padding: 0.7rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: opacity var(--transition);
}
.cookie-banner button:hover { opacity: 0.85; }
@media (max-width: 720px) {
  .cookie-banner {
    bottom: 1rem;
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
    gap: 1rem;
    width: calc(100% - 2rem);
  }
  .cookie-banner p { font-size: 0.8rem; }
}

/* ============ LEGAL CONTENT (privacidad, términos, etc) ============ */
.legal-content {
  padding: 4rem 0 6rem;
}
.legal-article {
  max-width: 760px;
  margin: 0 auto;
}
.legal-article h2 {
  font-size: 1.4rem;
  margin: 3rem 0 1rem;
  color: var(--text);
  font-weight: 500;
}
.legal-article h2:first-child { margin-top: 0; }
.legal-article p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.legal-article ul {
  margin: 1rem 0 1.5rem 0;
  padding-left: 0;
  list-style: none;
}
.legal-article ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.legal-article ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.legal-article strong {
  color: var(--text);
  font-weight: 500;
}
.footer-meta a {
  color: inherit;
  text-decoration: underline;
  opacity: 0.85;
}
.footer-meta a:hover { opacity: 1; }
@media (max-width: 720px) {
  .legal-article p { text-align: left; }
}
