/*
Theme Name:   SCB Abogados Child
Template:     astra
Version:      1.0.0
Author:       SCB Abogados
*/

    /* ─── RESET & BASE ─────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --navy:   #0F1B2D;
      --navy-2: #162438;
      --gold:   #C4A97D;
      --gold-lt:#D9C4A1;
      --cream:  #F8F6F1;
      --white:  #FFFFFF;
      --text:   #1A2B3C;
      --muted:  #6B7A8D;
      --border: #E4DDD3;

      --font-serif: 'Playfair Display', Georgia, serif;
      --font-sans:  'DM Sans', system-ui, sans-serif;

      --radius: 2px;
      --section-pad: clamp(5rem, 10vw, 9rem);
      --container: 1160px;
      --gap: 2rem;

      --transition: 0.28s ease;
    }

    html { scroll-behavior: smooth; font-size: 16px; }

    body {
      font-family: var(--font-sans);
      color: var(--text);
      background: var(--white);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    img { display: block; max-width: 100%; }
    a { text-decoration: none; color: inherit; }
    ul { list-style: none; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }

    /* ─── CONTAINERS ───────────────────────────────────────────── */
    .container {
      width: 100%;
      max-width: var(--container);
      margin-inline: auto;
      padding-inline: clamp(1.25rem, 5vw, 3rem);
    }

    /* ─── TYPOGRAPHY ───────────────────────────────────────────── */
    h1, h2, h3 { font-family: var(--font-serif); line-height: 1.18; font-weight: 600; }
    h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
    h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
    h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
    p  { line-height: 1.75; font-weight: 300; }

    .eyebrow {
      font-family: var(--font-sans);
      font-size: 0.7rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
    }

    /* ─── BUTTONS ──────────────────────────────────────────────── */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.9rem 2rem;
      font-family: var(--font-sans);
      font-size: 0.82rem;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      border-radius: var(--radius);
      transition: all var(--transition);
      cursor: pointer;
    }

    .btn-gold {
      background: var(--gold);
      color: var(--navy);
    }
    .btn-gold:hover {
      background: #B8975F;
      transform: translateY(-1px);
      box-shadow: 0 8px 24px rgba(196,169,125,0.35);
    }

    .btn-outline-gold {
      border: 1px solid var(--gold);
      color: var(--gold);
    }
    .btn-outline-gold:hover {
      background: rgba(196,169,125,0.1);
      transform: translateY(-1px);
    }

    .btn-outline-white {
      border: 1px solid rgba(255,255,255,0.4);
      color: var(--white);
    }
    .btn-outline-white:hover {
      border-color: var(--gold);
      color: var(--gold);
    }

    /* ─── HEADER / NAV ─────────────────────────────────────────── */
    #header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: var(--white);
      border-bottom: 1px solid var(--border);
      transition: box-shadow var(--transition);
    }
    #header.scrolled { box-shadow: 0 4px 24px rgba(15,27,45,0.08); }

    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }

    .nav-logo img { height: 44px; width: auto; }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 2.5rem;
    }
    .nav-links a {
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      transition: color var(--transition);
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -3px; left: 0;
      width: 0; height: 1px;
      background: var(--gold);
      transition: width var(--transition);
    }
    .nav-links a:hover { color: var(--navy); }
    .nav-links a:hover::after { width: 100%; }

    .nav-cta { margin-left: 1.5rem; }

    /* Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      padding: 4px;
      cursor: pointer;
      background: none;
      border: none;
    }
    .hamburger span {
      display: block;
      width: 24px; height: 1.5px;
      background: var(--navy);
      transition: all var(--transition);
    }
    .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .mobile-menu {
      display: none;
      flex-direction: column;
      background: var(--white);
      border-top: 1px solid var(--border);
      padding: 1.5rem;
      gap: 1.25rem;
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
      font-size: 0.9rem;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text);
      padding: 0.25rem 0;
      border-bottom: 1px solid var(--border);
    }
    .mobile-menu .btn { align-self: flex-start; margin-top: 0.5rem; }

    /* ─── HERO ─────────────────────────────────────────────────── */
    #hero {
      min-height: 100svh;
      background: var(--navy);
      display: flex;
      align-items: center;
      padding-top: 72px;
      position: relative;
      overflow: hidden;
    }

    /* Subtle geometric texture */
    #hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(196,169,125,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,169,125,0.04) 1px, transparent 1px);
      background-size: 60px 60px;
    }

    /* Decorative arc */
    #hero::after {
      content: '';
      position: absolute;
      right: -200px; top: -200px;
      width: 700px; height: 700px;
      border-radius: 50%;
      border: 1px solid rgba(196,169,125,0.12);
      pointer-events: none;
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      max-width: 800px;
      padding-block: clamp(4rem, 10vw, 8rem);
    }

    .hero-label {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 2rem;
    }
    .hero-label .line {
      flex: 0 0 40px;
      height: 1px;
      background: var(--gold);
    }

    .hero-inner h1 {
      color: var(--white);
      margin-bottom: 1.75rem;
      max-width: 680px;
    }
    .hero-inner h1 em {
      font-style: italic;
      color: var(--gold-lt);
    }

    .hero-sub {
      color: rgba(255,255,255,0.65);
      font-size: 1.05rem;
      max-width: 580px;
      margin-bottom: 3rem;
      line-height: 1.8;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
    }

    /* Scroll indicator */
    .scroll-hint {
      position: absolute;
      bottom: 2.5rem; left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      opacity: 0.45;
    }
    .scroll-hint span {
      font-size: 0.65rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
    }
    .scroll-hint .arrow {
      width: 1px; height: 36px;
      background: linear-gradient(to bottom, var(--gold), transparent);
      animation: scrollPulse 2s ease infinite;
    }
    @keyframes scrollPulse {
      0%, 100% { opacity: 0.4; transform: scaleY(1); }
      50%       { opacity: 1;   transform: scaleY(1.2); }
    }

    /* ─── SECTION SHARED ───────────────────────────────────────── */
    .section { padding-block: var(--section-pad); }
    .section-cream { background: var(--cream); }
    .section-white { background: var(--white); }
    .section-navy  { background: var(--navy); }

    .section-header { margin-bottom: clamp(3rem, 6vw, 5rem); }
    .section-header .eyebrow { margin-bottom: 1rem; }
    .section-header h2 { color: var(--navy); }
    .section-header p {
      margin-top: 1rem;
      max-width: 600px;
      color: var(--muted);
      font-size: 1.05rem;
    }
    .section-header.center { text-align: center; }
    .section-header.center p { margin-inline: auto; }

    /* Gold rule divider */
    .gold-rule {
      display: block;
      width: 48px; height: 2px;
      background: var(--gold);
      margin-top: 1.5rem;
    }
    .center .gold-rule { margin-inline: auto; }

    /* ─── PROBLEMA ──────────────────────────────────────────────── */
    .problema-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(2rem, 5vw, 4rem);
      align-items: start;
    }

    .question-cards { display: flex; flex-direction: column; gap: 1.5rem; }

    .q-card {
      background: var(--white);
      border-left: 3px solid var(--gold);
      padding: 1.75rem 1.75rem 1.75rem 2rem;
      box-shadow: 0 2px 16px rgba(15,27,45,0.06);
      transition: transform var(--transition), box-shadow var(--transition);
    }
    .q-card:hover {
      transform: translateX(4px);
      box-shadow: 0 4px 24px rgba(15,27,45,0.1);
    }

    .q-card-label {
      font-size: 0.68rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 0.75rem;
    }
    .q-card p {
      font-family: var(--font-serif);
      font-size: 1.08rem;
      color: var(--navy);
      line-height: 1.5;
      font-weight: 400;
    }

    .problema-right { display: flex; flex-direction: column; gap: 1.5rem; }

    .problema-right .body-text {
      color: var(--muted);
      font-size: 0.97rem;
    }

    .pull-quote {
      background: var(--navy);
      padding: 2.5rem;
      position: relative;
    }
    .pull-quote::before {
      content: '"';
      font-family: var(--font-serif);
      font-size: 6rem;
      line-height: 0.6;
      color: var(--gold);
      opacity: 0.25;
      position: absolute;
      top: 1.5rem; left: 1.75rem;
    }
    .pull-quote blockquote {
      font-family: var(--font-serif);
      font-size: clamp(1rem, 2vw, 1.25rem);
      color: var(--gold-lt);
      line-height: 1.6;
      font-style: italic;
      position: relative;
      z-index: 1;
    }
    .pull-quote cite {
      display: block;
      margin-top: 1rem;
      font-style: normal;
      font-family: var(--font-sans);
      font-size: 0.72rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(196,169,125,0.55);
    }

    /* ─── SERVICIOS ─────────────────────────────────────────────── */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5px;
      background: var(--border);
    }

    .service-card {
      background: var(--white);
      padding: 2.5rem;
      display: flex;
      flex-direction: column;
      border-top: 3px solid transparent;
      transition: border-color var(--transition), transform var(--transition);
    }
    .service-card:hover {
      border-top-color: var(--gold);
      transform: translateY(-4px);
      box-shadow: 0 12px 40px rgba(15,27,45,0.1);
      z-index: 1;
      position: relative;
    }

    .service-num {
      font-size: 0.65rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      color: var(--gold);
      margin-bottom: 1.5rem;
    }

    .service-card h3 {
      color: var(--navy);
      margin-bottom: 1rem;
      font-size: 1.2rem;
    }

    .service-card p {
      color: var(--muted);
      font-size: 0.92rem;
      flex: 1;
    }

    .service-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 2rem;
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gold);
      transition: gap var(--transition);
    }
    .service-link:hover { gap: 0.75rem; }

    /* ─── DIFERENCIADORES ───────────────────────────────────────── */
    .diff-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: clamp(2rem, 4vw, 3.5rem);
    }

    .diff-item { display: flex; flex-direction: column; gap: 1.25rem; }

    .diff-icon {
      width: 48px; height: 48px;
      color: var(--gold);
    }

    .diff-item h3 {
      color: var(--navy);
      font-size: 1.15rem;
    }

    .diff-item p {
      color: var(--muted);
      font-size: 0.92rem;
    }

    .diff-rule {
      width: 28px; height: 1px;
      background: var(--gold);
      margin-bottom: 0.25rem;
    }

    /* ─── SECTORES ──────────────────────────────────────────────── */
    .sectores-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      justify-content: center;
      margin-top: 3rem;
    }

    .chip {
      display: inline-block;
      padding: 0.65rem 1.5rem;
      border: 1px solid var(--gold);
      color: var(--text);
      font-size: 0.8rem;
      font-weight: 400;
      letter-spacing: 0.05em;
      border-radius: 100px;
      transition: all var(--transition);
    }
    .chip:hover {
      background: var(--gold);
      color: var(--navy);
    }

    /* ─── CTA BANNER ─────────────────────────────────────────────── */
    .cta-banner { text-align: center; }

    .cta-banner .eyebrow { margin-bottom: 1.25rem; }
    .cta-banner h2 { color: var(--white); max-width: 680px; margin-inline: auto; }
    .cta-banner p {
      color: rgba(255,255,255,0.6);
      max-width: 520px;
      margin: 1.5rem auto 2.5rem;
      font-size: 1.02rem;
    }

    /* ─── CONTACTO ──────────────────────────────────────────────── */
    .contacto-grid {
      display: grid;
      grid-template-columns: 1fr 1.6fr;
      gap: clamp(3rem, 6vw, 6rem);
      align-items: start;
    }

    .contact-info h2 { color: var(--navy); margin-bottom: 1rem; }
    .contact-info .lead {
      color: var(--muted);
      margin-bottom: 2.5rem;
      font-size: 0.97rem;
    }

    .contact-details { display: flex; flex-direction: column; gap: 1.25rem; }

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

    .contact-item svg {
      width: 18px; height: 18px;
      color: var(--gold);
      flex-shrink: 0;
      margin-top: 2px;
    }

    .contact-item-body { display: flex; flex-direction: column; gap: 0.2rem; }
    .contact-item-label {
      font-size: 0.68rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 500;
    }
    .contact-item-value {
      font-size: 0.95rem;
      color: var(--navy);
    }

    /* FORM */
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
    .form-group.full { grid-column: 1 / -1; }

    label {
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }

    input, select, textarea {
      width: 100%;
      padding: 0.85rem 1rem;
      font-family: var(--font-sans);
      font-size: 0.92rem;
      color: var(--text);
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      outline: none;
      transition: border-color var(--transition), box-shadow var(--transition);
      -webkit-appearance: none;
    }
    input:focus, select:focus, textarea:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(196,169,125,0.15);
    }
    select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A8D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
    textarea { resize: vertical; min-height: 110px; }

    .checkbox-group {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      padding: 1rem;
      background: rgba(196,169,125,0.06);
      border: 1px solid rgba(196,169,125,0.2);
    }
    .checkbox-group input[type="checkbox"] {
      width: 18px; height: 18px;
      flex-shrink: 0;
      margin-top: 1px;
      accent-color: var(--gold);
    }
    .checkbox-group label {
      font-size: 0.8rem;
      letter-spacing: 0;
      text-transform: none;
      font-weight: 300;
      color: var(--muted);
    }
    .checkbox-group a { color: var(--gold); }

    .btn-submit {
      width: 100%;
      padding: 1rem;
      background: var(--navy);
      color: var(--white);
      font-family: var(--font-sans);
      font-size: 0.8rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      border-radius: var(--radius);
      cursor: pointer;
      border: 1px solid var(--navy);
      transition: all var(--transition);
      margin-top: 0.5rem;
    }
    .btn-submit:hover {
      background: var(--gold);
      border-color: var(--gold);
      color: var(--navy);
    }

    /* ─── FOOTER ─────────────────────────────────────────────────── */
    footer {
      background: var(--navy);
      padding-block: clamp(3rem, 6vw, 5rem) 2rem;
    }

    .footer-top {
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr;
      gap: 3rem;
      padding-bottom: 3rem;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      margin-bottom: 2.5rem;
    }

    .footer-brand .footer-logo { margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: 0.85; height: 48px; }
    .footer-brand p {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.4);
      line-height: 1.7;
    }
    .footer-brand .footer-email {
      display: inline-block;
      margin-top: 1rem;
      font-size: 0.82rem;
      color: var(--gold);
    }

    .footer-col h4 {
      font-family: var(--font-sans);
      font-size: 0.65rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.35);
      margin-bottom: 1.25rem;
    }

    .footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
    .footer-col ul li a {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.5);
      transition: color var(--transition);
    }
    .footer-col ul li a:hover { color: var(--gold-lt); }

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

    .footer-bottom p, .footer-bottom a {
      font-size: 0.75rem;
      color: rgba(255,255,255,0.25);
    }
    .footer-bottom a:hover { color: rgba(255,255,255,0.5); }

    .footer-legal {
      display: flex;
      gap: 1.5rem;
    }

    .footer-disclaimer {
      width: 100%;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(255,255,255,0.05);
      margin-top: 1rem;
    }
    .footer-disclaimer p {
      font-size: 0.72rem;
      color: rgba(255,255,255,0.2);
      line-height: 1.6;
    }

    /* ─── ANIMATIONS ─────────────────────────────────────────────── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .hero-inner .eyebrow  { animation: fadeUp 0.7s ease both; animation-delay: 0.1s; }
    .hero-inner h1        { animation: fadeUp 0.7s ease both; animation-delay: 0.25s; }
    .hero-sub             { animation: fadeUp 0.7s ease both; animation-delay: 0.4s; }
    .hero-actions         { animation: fadeUp 0.7s ease both; animation-delay: 0.55s; }

    /* Intersection observer reveal */
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ─── RESPONSIVE ─────────────────────────────────────────────── */
    @media (max-width: 1024px) {
      .services-grid { grid-template-columns: 1fr 1fr; }
      .services-grid .service-card:last-child { grid-column: 1 / -1; }
      .diff-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
      .footer-top { grid-template-columns: 1fr 1fr; }
      .footer-brand { grid-column: 1 / -1; }
    }

    @media (max-width: 768px) {
      .nav-links, .nav-cta { display: none; }
      .hamburger { display: flex; }

      .problema-grid { grid-template-columns: 1fr; }
      .services-grid { grid-template-columns: 1fr; }
      .services-grid .service-card:last-child { grid-column: auto; }
      .diff-grid { grid-template-columns: 1fr; }
      .contacto-grid { grid-template-columns: 1fr; }
      .form-grid { grid-template-columns: 1fr; }
      .form-group.full { grid-column: auto; }
      .footer-top { grid-template-columns: 1fr; gap: 2rem; }
      .footer-bottom { flex-direction: column; align-items: flex-start; }
    }
