:root {
      --primary: #0b1730;
      --primary-soft: #142442;
      --accent: #b28a45;
      --accent-dark: #8b692f;
      --text: #263247;
      --muted: #667085;
      --light: #f5f7fa;
      --white: #ffffff;
      --line: #e3e8ef;
      --success: #1f8f56;
      --whatsapp: #25d366;
      --shadow: 0 18px 45px rgba(11, 23, 48, 0.08);
      --radius: 18px;
      --max-width: 1180px;
    }

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

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 90px;
    }

    body {
      font-family: Inter, "Segoe UI", Arial, sans-serif;
      color: var(--text);
      background: var(--white);
      line-height: 1.65;
    }

    body.menu-open {
      overflow: hidden;
    }

    a {
      color: inherit;
    }

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

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    .container {
      width: min(var(--max-width), calc(100% - 40px));
      margin: 0 auto;
    }

    .eyebrow {
      color: var(--accent-dark);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-size: 0.78rem;
      margin-bottom: 0.8rem;
    }

    .section-heading {
      max-width: 760px;
      margin: 0 auto 3rem;
      text-align: center;
    }

    .section-heading h2 {
      color: var(--primary);
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.16;
      margin-bottom: 1rem;
    }

    .section-heading p {
      color: var(--muted);
      font-size: 1.06rem;
    }

    section {
      padding: 6rem 0;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      min-height: 50px;
      padding: 0.85rem 1.35rem;
      border-radius: 10px;
      text-decoration: none;
      font-weight: 800;
      border: 1px solid transparent;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .btn:hover {
      transform: translateY(-2px);
    }

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

    .btn-primary:hover {
      background: #c29a55;
    }

    .btn-dark {
      background: var(--primary);
      color: var(--white);
    }

    .btn-outline {
      border-color: rgba(255, 255, 255, 0.5);
      color: var(--white);
      background: transparent;
    }

    .btn-whatsapp {
      background: var(--whatsapp);
      color: #082f1b;
    }

    /* HEADER */
    .site-header {
      position: fixed;
      inset: 0 0 auto 0;
      z-index: 1000;
      background: rgba(255, 255, 255, 0.96);
      border-bottom: 1px solid rgba(227, 232, 239, 0.95);
      backdrop-filter: blur(12px);
    }

    .nav-wrap {
      min-height: 78px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .brand {
      text-decoration: none;
      color: var(--primary);
      line-height: 1.1;
    }

    .brand strong {
      display: block;
      font-size: 1.08rem;
    }

    .brand span {
      font-size: 0.75rem;
      color: var(--muted);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .desktop-nav {
      display: flex;
      align-items: center;
      gap: 1.25rem;
    }

    .desktop-nav a {
      text-decoration: none;
      color: var(--text);
      font-weight: 700;
      font-size: 0.92rem;
    }

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

    .menu-toggle {
      display: none;
      width: 46px;
      height: 46px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--white);
      color: var(--primary);
      font-size: 1.45rem;
      cursor: pointer;
    }

    .mobile-nav {
      display: none;
    }

    /* HERO */
    .hero {
      min-height: 720px;
      padding-top: 13rem;
      padding-bottom: 7rem;
      color: var(--white);
      background:
        linear-gradient(rgba(11,23,48,.72), rgba(11,23,48,.72)),
        url('../images/hero-tribunales.webp');
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      align-items: center;
      gap: 4rem;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.08);
      padding: 0.55rem 0.9rem;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 800;
      margin-bottom: 1.4rem;
    }

    .hero h1 {
      font-size: clamp(2.7rem, 6vw, 4.8rem);
      line-height: 1.03;
      max-width: 850px;
      margin-bottom: 1.5rem;
      letter-spacing: -0.04em;
    }

    .hero-copy {
      font-size: clamp(1.05rem, 2vw, 1.28rem);
      color: #dbe4ef;
      max-width: 780px;
      margin-bottom: 2rem;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.85rem;
      margin-bottom: 2rem;
    }

    .hero-trust {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem 1.6rem;
      color: #e7edf5;
      font-size: 0.92rem;
      font-weight: 700;
    }

    .hero-card {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 24px;
      padding: 2rem;
      backdrop-filter: blur(8px);
      box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
    }

    .hero-card h2 {
      font-size: 1.45rem;
      margin-bottom: 1rem;
    }

    .hero-card ul {
      list-style: none;
      display: grid;
      gap: 0.9rem;
      color: #e5edf6;
    }

    .hero-card li {
      display: grid;
      grid-template-columns: 24px 1fr;
      gap: 0.65rem;
    }

    /* PROBLEM CARDS */
    .problems {
      background: var(--light);
    }

    .problem-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.25rem;
    }

    .problem-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 1.7rem;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
    }

    .problem-icon {
      width: 50px;
      height: 50px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: #f2eadb;
      color: var(--accent-dark);
      font-size: 1.3rem;
      margin-bottom: 1rem;
    }

    .problem-card h3 {
      color: var(--primary);
      margin-bottom: 0.65rem;
      font-size: 1.2rem;
    }

    .problem-card p {
      color: var(--muted);
      margin-bottom: 1.1rem;
    }

    .problem-card a {
      margin-top: auto;
      color: var(--accent-dark);
      font-weight: 800;
      text-decoration: none;
    }

    /* SERVICES */
    .service-list {
      display: grid;
      gap: 1.35rem;
    }

    .service-panel {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--white);
      box-shadow: 0 10px 30px rgba(11, 23, 48, 0.05);
      overflow: hidden;
    }

    .service-panel summary {
      list-style: none;
      cursor: pointer;
      display: grid;
      grid-template-columns: 64px 1fr 32px;
      align-items: center;
      gap: 1rem;
      padding: 1.45rem 1.6rem;
    }

    .service-panel summary::-webkit-details-marker {
      display: none;
    }

    .service-panel[open] summary {
      border-bottom: 1px solid var(--line);
      background: #fbfcfd;
    }

    .service-symbol {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      display: grid;
      place-items: center;
      background: var(--primary);
      color: var(--white);
      font-size: 1.35rem;
    }

    .service-title h3 {
      color: var(--primary);
      font-size: 1.25rem;
      margin-bottom: 0.2rem;
    }

    .service-title p {
      color: var(--muted);
      font-size: 0.94rem;
    }

    .service-plus {
      font-size: 1.55rem;
      color: var(--accent-dark);
      transition: transform 0.2s ease;
    }

    .service-panel[open] .service-plus {
      transform: rotate(45deg);
    }

    .service-content {
      padding: 1.5rem 1.6rem 1.7rem;
    }

    .service-content > p {
      color: var(--muted);
      margin-bottom: 1.15rem;
    }

    .service-detail-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
      gap: 2rem;
      align-items: stretch;
    }

    .service-detail-copy {
      min-width: 0;
    }

    .service-detail-copy > p {
      color: var(--muted);
      margin-bottom: 1.15rem;
    }

    .service-image {
      min-height: 330px;
      border-radius: 16px;
      overflow: hidden;
      background: var(--light);
      box-shadow: 0 12px 30px rgba(11, 23, 48, 0.10);
    }

    .service-image img {
      width: 100%;
      height: 100%;
      min-height: 330px;
      object-fit: cover;
      display: block;
      transition: transform 0.45s ease;
    }

    .service-panel[open] .service-image:hover img {
      transform: scale(1.035);
    }

    .check-grid {
      list-style: none;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.8rem 1.2rem;
      margin-bottom: 1.35rem;
    }

    .check-grid li {
      position: relative;
      padding-left: 1.45rem;
      color: var(--text);
    }

    .check-grid li::before {
      content: "✓";
      position: absolute;
      left: 0;
      color: var(--success);
      font-weight: 900;
    }

    /* CTA BAND */
    .cta-band {
      padding: 0;
    }

    .cta-box {
      background: linear-gradient(rgba(11,23,48,.80), rgba(11,23,48,.80)), url('../images/cta-congreso.webp');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      color: var(--white);
      border-radius: 24px;
      padding: 2.4rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 2rem;
      box-shadow: var(--shadow);
    }

    .cta-box h2 {
      font-size: clamp(1.75rem, 3vw, 2.5rem);
      line-height: 1.15;
      margin-bottom: 0.5rem;
    }

    .cta-box p {
      color: #d8e1ec;
    }

    /* BENEFITS */
    .benefits {
      background: var(--light);
    }

    .benefit-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.2rem;
    }

    .benefit {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 1.5rem;
    }

    .benefit h3 {
      color: var(--primary);
      margin-bottom: 0.45rem;
    }

    .benefit p {
      color: var(--muted);
    }

    /* PROCESS */
    .steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.4rem;
      counter-reset: step;
    }

    .step {
      counter-increment: step;
      position: relative;
      padding: 2rem;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--white);
    }

    .step::before {
      content: "0" counter(step);
      display: block;
      color: var(--accent-dark);
      font-size: 0.85rem;
      font-weight: 900;
      letter-spacing: 0.1em;
      margin-bottom: 1rem;
    }

    .step h3 {
      color: var(--primary);
      margin-bottom: 0.65rem;
    }

    .step p {
      color: var(--muted);
    }

    /* ABOUT */
    .about {
      background: var(--primary);
      color: var(--white);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 0.85fr 1.15fr;
      gap: 4rem;
      align-items: center;
    }

    .portrait {
      min-height: 470px;
      border-radius: 24px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
      display: grid;
      place-items: center;
      text-align: center;
      color: #c9d4e2;
      overflow: hidden;
      box-shadow: 0 24px 55px rgba(0, 0, 0, 0.18);
    }

    .portrait-photo img {
      width: 100%;
      height: 100%;
      min-height: 470px;
      object-fit: cover;
      object-position: center;
      display: block;
    }

    .about h2 {
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.15;
      margin-bottom: 1.2rem;
    }

    .about p {
      color: #d6deea;
      margin-bottom: 1rem;
    }

    .about-points {
      list-style: none;
      display: grid;
      gap: 0.7rem;
      margin: 1.5rem 0;
    }

    .about-points li::before {
      content: "✓";
      color: var(--accent);
      font-weight: 900;
      margin-right: 0.65rem;
    }

    /* CLIENT TYPES */
    .client-types {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.8rem;
    }

    .client-pill {
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: 999px;
      padding: 0.75rem 1rem;
      color: var(--primary);
      font-weight: 800;
    }

    /* FAQ */
    .faq {
      background: var(--light);
    }

    .faq-list {
      max-width: 900px;
      margin: 0 auto;
      display: grid;
      gap: 0.8rem;
    }

    .faq-item {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 1.1rem 1.25rem;
    }

    .faq-item summary {
      cursor: pointer;
      font-weight: 800;
      color: var(--primary);
    }

    .faq-item p {
      color: var(--muted);
      padding-top: 0.8rem;
    }

    /* CONTACT */
    .contact-grid {
      display: grid;
      grid-template-columns: 0.85fr 1.15fr;
      gap: 3rem;
    }

    .contact-card {
      background: var(--primary);
      color: var(--white);
      border-radius: 22px;
      padding: 2rem;
    }

    .contact-card h3 {
      font-size: 1.55rem;
      margin-bottom: 1rem;
    }

    .contact-card p {
      color: #d7dfeb;
      margin-bottom: 1rem;
    }

    .contact-data {
      list-style: none;
      display: grid;
      gap: 0.9rem;
      margin-top: 1.5rem;
    }

    .contact-data a {
      color: var(--white);
      text-decoration: none;
    }

    .contact-form {
      display: grid;
      gap: 1rem;
    }

    .field {
      display: grid;
      gap: 0.4rem;
    }

    .field label {
      font-weight: 800;
      color: var(--primary);
      font-size: 0.92rem;
    }

    .field input,
    .field select,
    .field textarea {
      width: 100%;
      border: 1px solid #cfd7e2;
      border-radius: 10px;
      padding: 0.9rem 1rem;
      background: var(--white);
      color: var(--text);
      outline: none;
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(178, 138, 69, 0.16);
    }

    .field textarea {
      min-height: 130px;
      resize: vertical;
    }

    .legal-note {
      font-size: 0.82rem;
      color: var(--muted);
    }


    /* MAPA */
    .map-section {
      padding-top: 0;
    }

    .map-grid {
      display: grid;
      grid-template-columns: 0.78fr 1.22fr;
      gap: 2rem;
      align-items: stretch;
    }

    .map-info {
      background: var(--light);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 2rem;
    }

    .map-info h3 {
      color: var(--primary);
      font-size: 1.55rem;
      margin-bottom: 0.8rem;
    }

    .map-info p {
      color: var(--muted);
      margin-bottom: 1rem;
    }

    .map-points {
      list-style: none;
      display: grid;
      gap: 0.7rem;
      margin: 1.4rem 0 1.6rem;
    }

    .map-points li::before {
      content: "✓";
      color: var(--success);
      font-weight: 900;
      margin-right: 0.65rem;
    }

    .map-frame {
      min-height: 430px;
      border-radius: 20px;
      overflow: hidden;
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      background: var(--light);
    }

    .map-frame iframe {
      width: 100%;
      height: 100%;
      min-height: 430px;
      border: 0;
      display: block;
    }

    /* FOOTER */
    footer {
      background: #071022;
      color: #9eacbd;
      padding: 2.5rem 0;
    }

    .footer-wrap {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
    }

    footer a {
      color: #d9e1ea;
      text-decoration: none;
    }

    /* FLOATING BUTTON */
    .wa-float {
      position: fixed;
      right: 22px;
      bottom: 22px;
      width: 62px;
      height: 62px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--whatsapp);
      color: #082f1b;
      text-decoration: none;
      font-size: 1.7rem;
      box-shadow: 0 12px 35px rgba(0,0,0,0.25);
      z-index: 900;
      transition: transform 0.2s ease;
    }

    .wa-float:hover {
      transform: scale(1.08);
    }

    /* RESPONSIVE */
    @media (max-width: 980px) {
      .desktop-nav {
        display: none;
      }

      .menu-toggle {
        display: grid;
        place-items: center;
      }

      .mobile-nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 1rem 20px 1.4rem;
        display: none;
        grid-template-columns: 1fr;
        gap: 0.35rem;
      }

      .mobile-nav.open {
        display: grid;
      }

      .mobile-nav a {
        text-decoration: none;
        padding: 0.8rem;
        border-radius: 8px;
        font-weight: 800;
      }

      .hero-grid,
      .about-grid,
      .contact-grid,
      .map-grid {
        grid-template-columns: 1fr;
      }

      .hero {
        padding-top: 11rem;
      }

      .hero-card {
        max-width: 680px;
      }

      .problem-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .check-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .service-detail-grid {
        grid-template-columns: 1fr;
      }

      .service-image {
        min-height: 300px;
      }

      .service-image img {
        min-height: 300px;
      }
    }

    @media (max-width: 700px) {
      section {
        padding: 4.5rem 0;
      }

      .container {
        width: min(100% - 28px, var(--max-width));
      }

      .hero {
        min-height: auto;
        padding-top: 9.5rem;
        padding-bottom: 5rem;
      }

      .hero h1 {
        font-size: 2.65rem;
      }

      .hero-actions {
        display: grid;
      }

      .hero-actions .btn {
        width: 100%;
      }

      .hero-trust {
        display: grid;
        gap: 0.55rem;
      }

      .problem-grid,
      .benefit-grid,
      .steps,
      .check-grid {
        grid-template-columns: 1fr;
      }

      .service-panel summary {
        grid-template-columns: 52px 1fr 24px;
        padding: 1.1rem;
      }

      .service-symbol {
        width: 48px;
        height: 48px;
      }

      .service-content {
        padding: 1.2rem;
      }

      .cta-box {
        align-items: flex-start;
        flex-direction: column;
      }

      .footer-wrap {
        align-items: flex-start;
        flex-direction: column;
      }
    }

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

      *,
      *::before,
      *::after {
        transition: none !important;
      }
    }
  
    /* ACCESIBILIDAD Y AJUSTES TÉCNICOS */
    .skip-link {
      position: fixed;
      top: 10px;
      left: 10px;
      z-index: 2000;
      transform: translateY(-160%);
      background: var(--primary);
      color: var(--white);
      padding: .75rem 1rem;
      border-radius: 8px;
      font-weight: 800;
      text-decoration: none;
    }
    .skip-link:focus { transform: translateY(0); }
    :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
    .consent-field {
      display: grid;
      grid-template-columns: 20px 1fr;
      align-items: start;
      gap: .65rem;
      color: var(--muted);
      font-size: .88rem;
    }
    .consent-field input {
      width: 18px;
      height: 18px;
      margin-top: .15rem;
      accent-color: var(--primary);
    }
    .consent-field a { color: var(--accent-dark); font-weight: 800; }
    .footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; }
    .footer-legal a:hover { color: var(--white); text-decoration: underline; }
    @media (max-width: 700px) {
      .footer-legal { flex-direction: column; gap: .4rem; }
    }

    /* SPRINT 2 — CONVERSIÓN Y EXPERIENCIA */
    .first-time {
      background: var(--white);
    }

    .first-time-grid {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 3rem;
      align-items: center;
    }

    .first-time-copy h2 {
      color: var(--primary);
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1.15;
      margin-bottom: 1rem;
    }

    .first-time-copy > p:not(.eyebrow) {
      color: var(--muted);
      font-size: 1.06rem;
      margin-bottom: 1.5rem;
    }

    .first-time-points {
      display: grid;
      gap: 1rem;
    }

    .first-time-points article {
      display: grid;
      grid-template-columns: 58px 1fr;
      gap: 1rem;
      align-items: start;
      padding: 1.25rem;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--light);
    }

    .first-time-points article > span {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: var(--primary);
      color: var(--white);
      font-weight: 900;
    }

    .first-time-points h3,
    .expect-card h3 {
      color: var(--primary);
      margin-bottom: .35rem;
    }

    .first-time-points p,
    .expect-card p {
      color: var(--muted);
    }

    .expect-section {
      background: var(--light);
    }

    .expect-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }

    .expect-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 1.5rem;
      box-shadow: 0 10px 28px rgba(11, 23, 48, 0.05);
    }

    .expect-card > span {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      background: #e9f6ef;
      color: var(--success);
      font-weight: 900;
      margin-bottom: 1rem;
    }

    .steps {
      grid-template-columns: repeat(4, 1fr);
    }

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity .65s ease, transform .65s ease;
    }

    .reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .problem-card,
    .benefit,
    .step,
    .expect-card,
    .service-panel {
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }

    .problem-card:hover,
    .benefit:hover,
    .step:hover,
    .expect-card:hover {
      transform: translateY(-4px);
      border-color: rgba(178, 138, 69, .5);
      box-shadow: var(--shadow);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr 0.8fr;
      gap: 2.5rem;
      align-items: start;
    }

    .footer-brand {
      display: block;
      color: var(--white);
      font-size: 1.25rem;
      margin-bottom: .6rem;
    }

    .footer-grid h2 {
      color: var(--white);
      font-size: 1rem;
      margin-bottom: .8rem;
    }

    .footer-grid p {
      margin-bottom: .35rem;
    }

    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,.12);
      margin-top: 2rem;
      padding-top: 1.5rem;
    }

    @media (max-width: 980px) {
      .first-time-grid {
        grid-template-columns: 1fr;
      }

      .expect-grid,
      .steps {
        grid-template-columns: repeat(2, 1fr);
      }

      .footer-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 700px) {
      .expect-grid,
      .steps,
      .footer-grid {
        grid-template-columns: 1fr;
      }

      .first-time-points article {
        grid-template-columns: 48px 1fr;
      }

      .first-time-points article > span {
        width: 44px;
        height: 44px;
      }
    }

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

    /* SPRINT 3 — IDENTIDAD VISUAL */
    body {
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    }

    h1, h2, h3,
    .brand strong,
    .footer-brand {
      font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, Arial, sans-serif;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: .8rem;
    }

    .brand-mark {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      flex: 0 0 44px;
      border-radius: 12px;
      background: var(--primary);
      color: var(--accent);
      font-family: Georgia, serif;
      font-size: .82rem;
      font-weight: 800;
      letter-spacing: -.04em;
      box-shadow: 0 8px 20px rgba(11, 23, 48, .13);
    }

    .brand-text {
      display: block;
    }

    .brand-text strong,
    .brand-text > span {
      display: block;
    }

    .brand-promise {
      display: inline-block;
      color: #f0d9a8;
      font-size: .92rem;
      font-weight: 700;
      letter-spacing: .02em;
      margin: -1rem 0 2rem;
      padding-left: 1rem;
      border-left: 3px solid var(--accent);
    }

    .problem-icon svg,
    .service-symbol svg {
      width: 26px;
      height: 26px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .problem-icon {
      background: linear-gradient(135deg, #f6efe2, #eee0c4);
    }

    .service-symbol {
      background: linear-gradient(145deg, var(--primary), var(--primary-soft));
      box-shadow: 0 8px 20px rgba(11, 23, 48, .16);
    }

    .image-frame {
      position: relative;
      isolation: isolate;
    }

    .image-frame::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      border-radius: inherit;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
      z-index: 2;
    }

    .editorial-image {
      filter: saturate(.88) contrast(1.03);
    }

    .service-image figcaption {
      position: absolute;
      left: 1rem;
      right: 1rem;
      bottom: 1rem;
      z-index: 3;
      padding: .7rem .85rem;
      border-radius: 10px;
      background: rgba(7, 16, 34, .78);
      color: #f4f7fb;
      font-size: .78rem;
      line-height: 1.35;
      backdrop-filter: blur(8px);
    }

    .resources-section {
      background: var(--white);
    }

    .resource-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
    }

    .resource-card {
      position: relative;
      min-height: 280px;
      display: flex;
      flex-direction: column;
      padding: 1.7rem;
      border-radius: 18px;
      border: 1px solid var(--line);
      background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
      box-shadow: 0 12px 32px rgba(11, 23, 48, .06);
      overflow: hidden;
    }

    .resource-card::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 4px;
      background: var(--accent);
    }

    .resource-tag {
      align-self: flex-start;
      display: inline-flex;
      padding: .4rem .65rem;
      border-radius: 999px;
      background: #f3ead8;
      color: var(--accent-dark);
      font-size: .74rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 1rem;
    }

    .resource-card h3 {
      color: var(--primary);
      font-size: 1.25rem;
      line-height: 1.3;
      margin-bottom: .8rem;
    }

    .resource-card p {
      color: var(--muted);
      margin-bottom: 1.3rem;
    }

    .resource-status {
      margin-top: auto;
      color: var(--primary);
      font-weight: 800;
      font-size: .85rem;
    }

    .footer-promise {
      max-width: 320px;
      color: #c7d0dc;
      font-size: .92rem;
    }

    section {
      scroll-margin-top: 90px;
    }

    .section-heading h2 {
      text-wrap: balance;
    }

    .section-heading p,
    .hero-copy {
      text-wrap: pretty;
    }

    @media (max-width: 980px) {
      .resource-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 700px) {
      .brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
      }

      .brand-text strong {
        font-size: .95rem;
      }

      .brand-text > span {
        font-size: .65rem;
      }

      .service-image figcaption {
        position: static;
        border-radius: 0;
        background: var(--primary);
      }
    }

    /* SPRINT 4 — RENDIMIENTO */
    @media (max-width: 700px) {
      .hero {
        background-image:
          linear-gradient(rgba(11,23,48,.74), rgba(11,23,48,.74)),
          url("../images/hero-tribunales-mobile.webp");
      }

      .cta-box {
        background-image:
          linear-gradient(rgba(11,23,48,.82), rgba(11,23,48,.82)),
          url("../images/cta-congreso-mobile.webp");
      }
    }

    /* El navegador puede omitir inicialmente el renderizado fuera de pantalla. */
    main > section:not(.hero) {
      content-visibility: auto;
      contain-intrinsic-size: 900px;
    }

    .service-image img,
    .portrait-photo img {
      background: #eef1f5;
    }

    button:disabled {
      cursor: wait;
      opacity: .72;
    }


/* SPRINT 5 — PRELANZAMIENTO */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 20px 55px rgba(7, 16, 34, .22);
}

.cookie-banner strong {
  display: block;
  color: var(--primary);
  margin-bottom: .2rem;
}

.cookie-banner p {
  color: var(--muted);
  font-size: .9rem;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  min-height: 42px;
  padding: .6rem .9rem;
}

.cookie-secondary {
  background: var(--light);
  color: var(--primary);
  border-color: var(--line);
}

.cookie-actions a {
  color: var(--accent-dark);
  font-size: .85rem;
  font-weight: 800;
}

noscript {
  display: block;
  padding: .8rem 1rem;
  background: #fff3cd;
  color: #624d00;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 700px) {
  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .wa-float,
  .cookie-banner,
  .btn,
  .mobile-nav,
  .map-frame,
  footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  section,
  main > section:not(.hero) {
    padding: 1rem 0;
    content-visibility: visible;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    color: #000;
    background: none !important;
  }

  .hero-copy,
  .hero-trust,
  .section-heading p,
  .about p {
    color: #222 !important;
  }

  .about {
    background: none;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}


/* IDENTIDAD FINAL — LOGO ЯR */
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 250px;
}

.brand-logo {
  width: 58px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--primary);
  font-size: 1.02rem;
  letter-spacing: .01em;
}

.brand-text > span {
  color: var(--muted);
  font-size: .69rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .24rem;
}

.footer-brand {
  display: block;
  margin-bottom: .8rem;
}

.footer-logo {
  width: min(100%, 360px);
  height: auto;
  display: block;
}

@media (max-width: 1100px) {
  .site-header .brand { min-width: auto; }
  .brand-logo { width: 50px; }
}

@media (max-width: 700px) {
  .brand-logo {
    width: 44px;
    height: 38px;
  }

  .brand-text strong { font-size: .9rem; }

  .brand-text > span {
    font-size: .58rem;
    letter-spacing: .08em;
  }
}

@media (max-width: 390px) {
  .brand-text > span { display: none; }
}


/* IDENTIDAD VISUAL UNIFORME */
.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 10px;
  flex: 0 0 auto;
}

.professional-tip-icon {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.professional-tip-logo {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
  border-radius: 14px;
}

.footer-logo {
  width: min(100%, 390px);
  height: auto;
}

@media (max-width: 700px) {
  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .professional-tip-logo {
    width: 54px;
    height: 54px;
  }
}
