    :root {
      --navy:      #0f1f38;
      --navy-deep: #080f1c;
      --gold:      #c9a84c;
      --gold-lt:   #e8c97e;
      --cream:     #f5f0e8;
      --cream-dk:  #ede5d4;
      --white:     #ffffff;
      --gray:      #4b5563;
      --border:    rgba(201,168,76,0.25);
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      font-size: 16px;
      line-height: 1.6;
      background: var(--cream);
      color: var(--navy);
      overflow-x: hidden;
    }

    .inner { max-width: 960px; margin: 0 auto; padding: 0 32px; }

    /* ── LANG TOGGLE (checkbox only drives the floating button highlight now;
         actual text swap is done in JS via the translations dictionary) ── */

  
    .lang-float {
      position: fixed;
      bottom: 28px;
      right: 28px;
      z-index: 999;
      display: flex;
      gap: 4px;
      background: var(--navy-deep);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 4px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    }
    .lang-btn {
      color: rgba(255,255,255,0.4);
      font-family: 'DM Sans', sans-serif;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
      padding: 5px 11px;
      border-radius: 2px;
      transition: all 0.2s;
      text-decoration: none;
      display: inline-block;
    }
    .lang-btn:hover { color: var(--gold-lt); }
    .lang-btn-en { color: var(--gold); background: rgba(201,168,76,0.1); }
    .lang-btn-es { color: rgba(255,255,255,0.4); }

    .lang-btn { background: none; border: none; }
    .lang-btn.active { color: var(--gold); background: rgba(201,168,76,0.1); }

 

    .menu-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 6px;
    }
    .menu-toggle span {
      width: 24px;
      height: 2px;
      background: var(--white);
      transition: 0.2s;
    }

    /* ── EYEBROW ── */
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 12px;
    }
    .eyebrow::before {
      content: '';
      display: block;
      width: 26px; height: 1px;
      background: var(--gold);
      flex-shrink: 0;
    }

    /* ── NAV ── */
    nav {
      background: var(--navy);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 32px;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 32px rgba(0,0,0,0.35);
    }
    .logo {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.85rem;
      font-weight: 700;
      color: var(--white);
      letter-spacing: 0.03em;
      text-decoration: none;
      white-space: nowrap;
    }
    .logo span { color: var(--gold); }
    .logo img { display: block; width: 190px; height: auto; }

    .nav-links {
      display: flex;
      gap: 40px;
      list-style: none;
    }

    .nav-links a {
      color: rgba(255,255,255,0.7);
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--gold); }

    .nav-links > li {
      position: relative;
    }
    
    .nav-links > li > a {
      display:inline-flex;
      align-items:center;
      gap:5px;
    }
    .nav-cta {
        background: var(--gold) !important;
        color: var(--navy-deep) !important;
        padding: 6px 20px !important;
        border-radius: 2px;
        font-weight: 600 !important;
        display: inline-flex;
        align-items: center;
      }

    .nav-cta:hover {
        background: var(--gold-lt) !important;
        color: var(--navy-deep) !important;
    }

    .caret {
      width:8px;
      height:8px;
      display:inline-block;
      border-right:1.5px solid currentColor;
      border-bottom:1.5px solid currentColor;
      transform:rotate(45deg) translateY(-2px);
      transition:.2s;
    }
    .has-dropdown:hover .caret {
      transform:rotate(225deg) translateY(2px);
    }

    /* Resources Dropdown (level 1) */
    .dropdown {
      position: relative;
    }

    .dropdown::after {
      content:"";
      position:absolute;
      left:0;
      right:0;
      top:100%;
      height:15px;
    }

    .dropdown-menu {
      position: absolute;
      top: calc(100%);
      left: 50%;
      transform: translateX(-50%) translateY(10px);
     
      background: var(--navy-deep);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 2px;
      padding: 7px 15px;
      min-width: 180px;

      box-shadow:0 20px 50px rgba(0,0,0,.45);

      opacity:0;
      visibility:hidden;

      transition: opacity .2s ease, transform .2s ease;
      z-index:200;
    }

    /* mantiene abierto mientras mouse está sobre Resources */
    .dropdown:hover .dropdown-menu,
    .dropdown-menu:hover {
      opacity:1;
      visibility:visible;
      transform: translateX(-50%) translateY(0);
    }

    /* links del dropdown */
    .dropdown-menu a {
      display:block;
      padding:.3rem;
      color:rgba(255,255,255,.7);
      text-decoration:none;
      font-size:.82rem;
      font-weight:400;
      text-transform:none;
      letter-spacing:.02em;
      white-space: nowrap;
      text-align: left;
    }

    .dropdown-menu a:hover {
      color:var(--gold-lt);
    }

    /* Nested submenu (level 2) — e.g. Guides > ITIN Guides / Tax Guides / ... */
    .has-submenu {
      position: relative;
    }
    .has-submenu::after {
      content: "";
      position: absolute;
      left: auto;
      top: 0;
      width: 18px;
      height: 100%;
    }
    .has-submenu > a {
      display: flex !important;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .submenu-caret {
      width: 6px; height: 6px;
      flex-shrink: 0;
      border-right: 1.4px solid currentColor;
      border-bottom: 1.4px solid currentColor;
      transform: rotate(-45deg);
      opacity: 0.6;
    }
    .submenu {
      position: absolute;
      top: -8px;
      right: calc(100% + 1px);
      left: auto;

      background: var(--navy-deep);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 2px;
      padding: 7px 15px;
      min-width: 190px;

      box-shadow: 0 20px 50px rgba(0,0,0,.45);

      opacity: 0;
      visibility: hidden;

      transform: translateX(6px);
      transition: opacity .2s ease, transform .2s ease;
      z-index: 300;
    }

    .has-submenu:hover .submenu,
    .submenu:hover {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* ── HERO ── */
    .hero {
      background: var(--navy);
      min-height: 78vh;
      display: flex;
      align-items: center;
      position: relative;
      overflow: hidden;
    }
    .hero-grid {
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(201,168,76,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.05) 1px, transparent 1px);
      background-size: 56px 56px;
    }
    .hero-glow {
      position: absolute; inset: 0;
      background: radial-gradient(ellipse 55% 65% at 75% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
    }
    .hero-content {
      position: relative;
      width: 100%;
      max-width: 960px;
      margin: 0 auto;
      padding: 0 64px 72px 64px;
    }
    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
      opacity: 0;
      animation: fadeUp 0.7s 0.15s forwards;
    }
    .hero-eyebrow::before {
      content: '';
      display: block;
      width: 28px; height: 1px;
      background: var(--gold);
      flex-shrink: 0;
    }
    h1 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(2.8rem, 6vw, 4rem);
      font-weight: 700;
      color: var(--white);
      line-height: 1.08;
      margin-bottom: 24px;
      opacity: 0;
      animation: fadeUp 0.7s 0.3s forwards;
    }
    h1 em { color: var(--gold); font-style: normal; }
    .hero-sub {
      font-size: 1.05rem;
      font-weight: 400;
      color: rgba(255,255,255,0.7);
      max-width: 700px;
      line-height: 1.75;
      margin-bottom: 40px;
      opacity: 0;
      animation: fadeUp 0.7s 0.45s forwards;
    }
    .hero-btns {
      display: flex; gap: 14px; flex-wrap: wrap;
      opacity: 0;
      animation: fadeUp 0.7s 0.6s forwards;
    }
    .btn-primary {
      background: var(--gold);
      color: var(--navy-deep);
      padding: 13px 28px;
      border-radius: 2px;
      font-size: 0.88rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-decoration: none;
      display: inline-block;
      transition: all 0.2s;
    }
    .btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
    .btn-secondary {
      border: 1px solid rgba(201,168,76,0.4);
      color: rgba(255,255,255,0.8);
      padding: 13px 28px;
      border-radius: 2px;
      font-size: 0.88rem;
      font-weight: 500;
      text-decoration: none;
      display: inline-block;
      transition: all 0.2s;
    }
    .btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

    /* ── TRUST BAR ── */
    .trust-bar {
      background: var(--cream-dk);
      border-bottom: 1px solid rgba(0,0,0,0.07);
      padding: 20px 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 48px;
      flex-wrap: wrap;
    }
    .trust-item {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 0.88rem;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--navy);
    }
    .trust-item svg { color: var(--gold); flex-shrink: 0; }

    /* ── SECTIONS ── */
    section { padding: 40px 0; }
    h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.9rem, 4vw, 3rem);
      font-weight: 700;
      line-height: 1.15;
      margin-bottom: 14px;
    }
    .section-desc {
      font-size: 1rem;
      font-weight: 400;
      color: var(--gray);
      line-height: 1.75;
    }

    /* ── SERVICES ── */
    .services-bg { background: var(--white); }
    .services-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 40px;
      margin-bottom: 44px;
      flex-wrap: wrap;
    }
    .services-header > div:first-child { flex-shrink: 0; }
    .services-header .section-desc { max-width: 400px; margin-top: 24px; }
    .services-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1px;
      background: transparent;
      border: 1px solid var(--border);
    }

    .service-card {
      background: var(--white);
      padding: 20px 32px;
      position: relative;
      overflow: hidden;
      transition: background 0.2s;
      border: 1px solid var(--border);
    }

    .service-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--gold);
      transition: width 0.3s ease;
    }

    .service-card:hover {
      background: var(--cream);
    }

    .service-card:hover::after {
      width: 100%;
    }

   .service-card-layout {
    display: block;
    }

   
    .service-card-content {
      min-width: 0;
    }

    .service-card h3 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.65rem;
      font-weight: bold;
      color: var(--navy);
      margin-bottom: 10px;
    }


    .service-note {
      font-size: 0.78rem !important;
      color: var(--gray) !important;
      opacity: 0.7;
      margin-top: 12px !important;
      font-style: italic;
      line-height: 1.5 !important;
    }
    .service-card p { 
      font-size: 0.92rem; 
      color: var(--gray); 
      line-height: 1.7; 
      margin-bottom: 12px; 
    }

    .service-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .service-list li {
      font-size: 0.88rem;
      color: var(--gray);
      line-height: 1.5;
      padding-left: 14px;
      position: relative;
    }
    .service-list li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 9px;
      width: 5px;
      height: 1px;
      background: var(--gold);
    }
    .service-card-full {
      grid-column: 1 / -1;
      max-width: 50%;
      margin: 0 auto;
      width: 100%;
      border-top: 1px solid var(--border);
    }
    @media (max-width: 760px) {
      .service-card-full { max-width: 100%; }
    }

    /* ── ABOUT ── */
    .why-bg { background: var(--navy); }
    .why-bg h2 { color: var(--white); }
    .why-bg .section-desc { color: rgba(255,255,255,0.55); }
    .why-header { margin-bottom: 44px; }
    .why-list { display: flex; flex-direction: column; }
    .why-item {
      display: grid;
      grid-template-columns: 52px 1fr;
      gap: 0 20px;
      align-items: start;
      padding: 28px 0;
      border-top: 1px solid rgba(201,168,76,0.15);
    }
    .why-item:last-child { border-bottom: 1px solid rgba(201,168,76,0.15); }
    .why-num {
      font-family: 'Cormorant Garamond', serif;
      font-size: 2.3rem;
      font-weight: 700;
      color: #ffffff;
      opacity: 0.80;
      line-height: 1;
      padding-top: 2px;
    }
    .why-text h4 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 6px;
    }
    .why-text p { font-size: 0.92rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

    /* ── CONTACT ── */
    .contact-bg { background: var(--cream); }
    .contact-layout {
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      gap: 64px;
      align-items: start;
    }
    .contact-info h2 { margin-bottom: 10px; }
    .contact-info .section-desc { margin-bottom: 32px; }
    .contact-details { display: flex; flex-direction: column; }
    .contact-row {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 18px 0;
      border-bottom: 1px solid rgba(0,0,0,0.07);
    }
    .contact-row:first-child { border-top: 1px solid rgba(0,0,0,0.07); }
    .c-icon {
      width: 34px; height: 34px;
      background: var(--navy);
      border-radius: 2px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .c-icon svg { color: var(--gold); }
    .c-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); margin-bottom: 3px; }
    .c-value { font-size: 0.95rem; font-weight: 500; color: var(--navy); }

    /* ── FORM ── */
    .contact-form { background: var(--white); border: 1px solid rgba(0,0,0,0.07); padding: 40px 36px; }
    .form-title { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 700; color: var(--navy); margin-bottom: 22px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-group { margin-bottom: 14px; }
    label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
    input, select, textarea {
      width: 100%;
      background: var(--cream);
      border: 1px solid rgba(0,0,0,0.1);
      border-radius: 2px;
      padding: 11px 14px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.92rem;
      color: var(--navy);
      outline: none;
      transition: border-color 0.2s;
      -webkit-appearance: none;
    }
    input:focus, select:focus, textarea:focus { border-color: var(--gold); }
    textarea { resize: vertical; min-height: 100px; }
    .form-submit {
      width: 100%;
      background: var(--navy);
      color: var(--white);
      border: none;
      padding: 14px;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.84rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      border-radius: 2px;
      margin-top: 6px;
      transition: background 0.2s;
    }
    .form-submit:hover:not(:disabled) { background: var(--gold); color: var(--navy-deep); }
    .form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
    .success-msg {
      display: none;
      background: #f0fdf4;
      border: 1px solid #86efac;
      color: #166534;
      padding: 14px;
      border-radius: 2px;
      font-size: 0.88rem;
      font-weight: 500;
      margin-top: 14px;
      text-align: center;
    }

    /* ── FOOTER ── */
    footer { background: var(--navy-deep); padding: 48px 32px; text-align: center; }
    .footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
    .footer-logo img { height: 32px; width: auto; display: block; margin: 0 auto; }
    .footer-logo span { color: var(--gold); }
    .footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.3); letter-spacing: 0.07em; margin-bottom: 28px; }
    .footer-links { display: flex; justify-content: center; gap: 28px; list-style: none; flex-wrap: wrap; margin-bottom: 28px; }
    .footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; transition: color 0.2s; }
    .footer-links a:hover { color: var(--gold); }
    .footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin-bottom: 20px; }
    .footer-copy { font-size: 0.74rem; color: rgba(255,255,255,0.22); }

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

    /* ── RESPONSIVE ── */
    @media (max-width: 760px) {
    .inner { padding: 0 20px; }
    nav { padding: 16px 20px; }
    .logo img { width: 180px; }

    .menu-toggle { display: flex; }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 0 20px;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, padding 0.25s ease;
    }
    .nav-links.open {
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: 12px 20px 20px;
    }

    .nav-links > li { width: 100%; }
    .nav-links > li > a { padding: 10px 0; width: 100%; }
    .dropdown-menu, .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        margin: 4px 0 4px 14px;
        min-width: 0;
    }
    .dropdown-menu.open, .submenu.open { display: block; }

  /*PRUEBA MENU */

  .dropdown:hover .dropdown-menu,
  .dropdown-menu:hover,
  .has-submenu:hover .submenu,
  .submenu:hover {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }


  section { padding: 36px 0; }
  .hero-content { padding: 0 20px 48px 20px; }
  .trust-bar { padding: 18px 20px; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; gap: 12px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 40px 20px; }
  .lang-float { bottom: 16px; right: 16px; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
}

/* Static breadcrumb and contextual resource enhancements */
.breadcrumbs{max-width:1160px;margin:0 auto;padding:14px 24px 0;font-size:.9rem;}
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;margin:0;padding:0;}
.breadcrumbs li:not(:last-child)::after{content:"/";margin-left:.45rem;color:#8a8a8a;}
.breadcrumbs a{color:inherit;text-decoration:none;}
.breadcrumbs a:hover{text-decoration:underline;}
.breadcrumbs [aria-current="page"]{font-weight:600;}
.article-cta .button{display:inline-block;}

/* Accessible inline form validation */
.form-group label::after {
  content: "";
}

.form-group:has([required]) label::after {
  content: " *";
  color: #a33a3a;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #a33a3a;
  box-shadow: 0 0 0 1px #a33a3a;
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  border-color: #a33a3a;
  box-shadow: 0 0 0 2px rgba(163, 58, 58, 0.16);
}

.field-error {
  display: none;
  margin-top: 6px;
  color: #8f2f2f;
  font-size: 0.82rem;
  line-height: 1.35;
}

.field-error.is-visible {
  display: block;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: #245c3d;
  background: #eef8f2;
  border-color: #b9dcc7;
}

.form-status.is-error {
  color: #8f2f2f;
  background: #fff2f2;
  border-color: #e4bcbc;
}

.form-status[hidden] {
  display: none;
}


/* Invisible anti-spam honeypot. Kept off-screen for human users. */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
