/* López Firm visual system, adapted to Abogada Brenda's Spanish content.
   Keep the source site untouched. Shared office/footer rules are in footer-reference.css. */
:root { --header-height: 86px; }
.site-header, .site-header.is-scrolled {
  grid-template-columns: auto auto minmax(190px, 1fr) auto;
  gap: clamp(20px, 2.2vw, 38px);
  padding: 0 max(28px, calc((100vw - 1440px) / 2));
  border: 0;
  background: #030d42;
}
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(0, 13, 34, .28); }
.site-header .brand { flex-direction: column; gap: 2px; min-width: 96px; align-items: center; justify-content: center; }
.site-header .brand img { width: 48px; height: 45px; padding: 4px; border-radius: 10px; background: #fff; }
.site-header .brand strong { color: #fff; font-size: 13px; line-height: 1; letter-spacing: .05em; white-space: nowrap; }
.site-header .brand small { display: none; }
.site-header .desktop-nav { display: flex; justify-self: start; gap: clamp(14px, 1.8vw, 26px); }
.site-header .desktop-nav > a, .site-header .nav-dropdown > button { color: #fff; font-size: 14px; }
.site-header .desktop-nav > a::after, .site-header .nav-dropdown > button::after { display: none; }
.site-header .nav-dropdown > button > span { color: var(--orange); }
.site-header .header-phone { display: inline-flex; justify-self: center; color: var(--orange); font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.site-header .language-switcher { display: flex; justify-self: end; gap: 7px; font-size: 18px; font-weight: 900; white-space: nowrap; }
.site-header .language-switcher, .site-header .language-switcher a { color: rgba(255,255,255,.68); }
.site-header .language-switcher a:hover, .site-header .language-switcher a[aria-current] { color: #fff; text-decoration: none; }
.site-header .mobile-toggle { display: none; }
.site-search-trigger { display: inline-grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: transparent; }
.site-search-trigger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.mobile-search { padding: 15px 5px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--navy); font-weight: 800; }

/* Matching photo treatment, message carousel and navy intake form. */
.hero {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 500px);
  gap: clamp(55px, 7vw, 115px);
  min-height: max(720px, calc(100svh - var(--header-height)));
  padding: clamp(60px, 8vh, 90px) max(28px, calc((100vw - var(--content)) / 2));
}
.hero-image { object-position: 52% 48%; opacity: .85; }
.hero-shade { background: linear-gradient(90deg, rgba(3, 13, 66,.96) 0%, rgba(3,13,66,.82) 48%, rgba(3,13,66,.48) 100%); }
.hero-copy { display: block; max-width: 780px; min-width: 0; }
.hero-copy > .eyebrow { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.4; }
.hero h1 { margin: 23px 0 28px; font-size: clamp(66px, 7.3vw, 112px); line-height: .9; letter-spacing: -.045em; }
.hero-messages { width: min(100%, 650px); margin-top: clamp(26px, 4vh, 42px); }
.hero-message-stage { display: grid; align-items: start; padding: 12px 0 12px 22px; border-left: 3px solid var(--orange); }
.hero-message { grid-area: 1 / 1; color: rgba(255,255,255,.76); font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; }
/* Hidden slides reserve their space, so changing messages never moves the form. */
.hero-message[hidden] { display: block; visibility: hidden; pointer-events: none; }
.hero-slide-link { display: table; max-width: 100%; margin-top: 22px; border-bottom: 2px solid var(--orange); color: #fff; font-size: clamp(24px, 2.1vw, 30px); font-weight: 700; line-height: 1.35; }
.hero-slide-link:hover { color: var(--orange); }
.hero-slide-link[href^="tel:"] { border-bottom: 0; text-decoration: none; }
.hero-controls { display: flex; align-items: center; gap: 7px; padding-top: 10px; }
.hero-controls button { position: relative; width: 18px; height: 28px; border: 0; padding: 0; background: transparent; color: #fff; }
.hero-controls [data-hero-dot]::before { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.4); left: 50%; top: 50%; transform: translate(-50%,-50%); }
.hero-controls [aria-pressed="true"] { width: 30px; }
.hero-controls [aria-pressed="true"]::before { width: 25px; background: var(--orange); }
.hero-controls .hero-pause { margin-left: 6px; width: 28px; font-size: 13px; }
.hero-form { position: relative; z-index: 2; width: 100%; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; background: rgba(3,13,66,.9); box-shadow: 0 28px 75px rgba(0,9,26,.34); backdrop-filter: blur(8px); color: #fff; }
.form-heading h2 { color: #fff; font-size: clamp(25px, 2.25vw, 32px); font-weight: 850; line-height: 1.12; }
.form-language-note { color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.5; }
.form-grid { gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-full { grid-column: 1 / -1; }
.hero-form .form-grid input, .hero-form .form-grid select, .hero-form .form-grid textarea { border: 0; border-radius: 7px; background: #fff; color: #14243b; font-size: 15px; font-weight: 500; }
.hero-form .form-grid input, .hero-form .form-grid select { min-height: 50px; padding-inline: 18px; }
.hero-form .form-grid textarea { min-height: 126px; padding: 17px 18px; }
.hero-form .consent { color: rgba(255,255,255,.76); }
.hero-form .consent a { color: inherit; font-weight: 700; }
.hero-form .form-status { min-height: 14px; color: #ffd0a1; font-size: 12px; }
.hero-form .form-status.is-error { color: #ffccc7; }
.hero-form > button { min-height: 54px; border-radius: 5px; background: var(--orange); color: var(--navy-deep); font-size: 12px; letter-spacing: 0; }
.hero-form > button:hover { background: #f47a20; }

/* Readable security challenge and persistent, accessible submission feedback. */
.contact-form[data-contact-form] .sms-optional-note { margin: 0; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; }
.captcha-overlay { padding: 12px; }
.captcha-dialog { width: min(100%, 640px); max-height: calc(100dvh - 24px); padding: clamp(20px, 4vw, 36px); gap: 16px; border-radius: 12px; }
.captcha-dialog > .eyebrow { padding-right: 40px; }
.captcha-dialog h2 { font-size: clamp(27px, 4vw, 36px); line-height: 1.15; }
.captcha-dialog > p:not(.eyebrow), .captcha-status { font-size: 17px; }
.captcha-image-row { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.captcha-image-row img { width: min(100%, 440px); height: auto; aspect-ratio: 220 / 72; border-radius: 6px; }
.captcha-refresh { min-height: 44px; font-size: 16px; }
.captcha-dialog label { min-width: 0; font-size: 16px; }
.captcha-dialog input { min-width: 0; width: 100%; min-height: 60px; font-size: 28px; text-align: center; letter-spacing: .2em; }
.captcha-close { top: 8px; right: 8px; width: 44px; height: 44px; font-size: 32px; }
.captcha-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.captcha-actions .button { min-width: 0; min-height: 50px; padding: 12px; font-size: 16px; letter-spacing: 0; }
.contact-form[data-contact-form] [data-form-status]:not(:empty) { margin: 0; padding: 18px 20px; border: 2px solid #b7cce5; border-radius: 8px; background: #edf4fc; color: #17395d; font-size: 18px; font-weight: 700; line-height: 1.5; }
.contact-form[data-contact-form] [data-form-status]:not(:empty).is-success { border-color: #70ad88; background: #ecf8ef; color: #155a30; }
.contact-form[data-contact-form] [data-form-status]:not(:empty).is-error { border-color: #e3a0a8; background: #fff0f1; color: #8b2030; }

/* Reference spacing and typography; the supplied Spanish copy is retained. */
.section-heading h2, .community-intro h2, .resources h2, .approach h2, .final-cta h2 { font-size: clamp(38px, 4.3vw, 62px); line-height: 1.04; letter-spacing: -.035em; }
.practices { background: #fff; padding-top: 135px; padding-bottom: 150px; }
.practices > .section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: start; max-width: none; text-align: left; margin-bottom: 86px; }
.practice-grid { gap: 0; padding-inline: 28px; grid-template-columns: minmax(0, 1fr); }
.practice-panel { box-shadow: none; }
.practice-panel::after { display: none; }
.practice-panel-copy { padding: clamp(32px, 4.4vw, 64px); gap: 22px; }
.practice-panel h3 { font-size: clamp(36px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -.025em; }
.practice-panel-copy > p:not(.eyebrow) { font-size: 18px; line-height: 1.65; }
.practice-panel-copy > .practice-intro-copy { color: #fff; }
.service-list strong { font-size: 16px; }
.service-list span { font-size: 15px; }
.service-list > div { position: relative; padding-right: 24px; }
.service-list > div::after { content: "→"; position: absolute; right: 0; top: 17px; color: var(--orange); }
.immigration-panel { background: var(--paper); color: var(--ink); }
.immigration-panel .practice-panel-copy > p, .immigration-panel .service-list strong, .immigration-panel .text-link { color: var(--ink); }
.immigration-panel .service-list span { color: var(--muted); }
.immigration-panel .service-list > div { border-color: var(--line); }
.about { padding-top: 0; }
.about-feature { display: flex; align-items: flex-start; justify-content: center; gap: 40px; }
.about-portrait { flex: 0 0 clamp(320px, 30vw, 430px); width: clamp(320px, 30vw, 430px); margin: 0; align-self: flex-start; min-height: 0; height: auto; background: transparent; }
.about-portrait img { display: block; height: auto; width: 100%; object-fit: contain; object-position: center top; }
.about-copy { flex: 0 1 650px; width: 650px; min-width: 0; }
.about-copy p, .bio-continuation p { font-size: clamp(20px, 1.55vw, 22px); line-height: 1.65; }
.about-copy .lead { border: 0; padding-bottom: 0; font-size: clamp(20px, 1.55vw, 22px); }
.bio-continuation { border: 0; padding: clamp(32px, 5vw, 72px); }
.bio-continuation .bio-closing { font-size: clamp(20px, 1.55vw, 22px); }
.banner-actions { display: grid; justify-items: start; gap: 16px; }
.banner-phone { font-size: 24px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lf-contact-banner h2 { max-width: 900px; }
.community { padding-top: 0; }
/* Five-photo mosaic: wide moments, portraits, and a full-height chamber photo. */
.gallery-story { grid-template-areas: "public public orange seated" "portrait flag flag seated"; grid-auto-rows: clamp(190px, 20vw, 270px); }
.gallery-story .story-public { grid-area: public; }
.gallery-story .story-orange { grid-area: orange; }
.gallery-story .story-portrait { grid-area: portrait; }
.gallery-story .story-flag { grid-area: flag; }
.gallery-story .story-seated { grid-area: seated; }
.gallery-story .story-flag img { object-position: center 48%; }
.gallery-story .story-seated img { object-position: center 55%; }
.approach { background: #fff; color: var(--ink); padding: 96px max(28px, calc((100vw - var(--content)) / 2)); }
.approach .section-heading { max-width: none; text-align: left; justify-items: start; }
.approach h2, .approach .eyebrow, .approach-statement, .steps h3, .reasons h3 { color: var(--navy); }
.steps { border: 0; gap: 36px; }
.steps article { padding: 24px 0; border: 0; border-top: 2px solid var(--orange); align-content: start; }
.steps h3, .reasons h3 { font-size: 28px; }
.steps p, .reasons p { color: #5e6c7b; font-size: 20px; line-height: 1.65; }
.approach-statement { font-size: clamp(28px, 3vw, 42px); text-align: left; }
.reasons { gap: 36px; }
.reasons article { padding: 24px 0; border: 0; border-top: 2px solid var(--orange); background: transparent; align-content: start; }
.legal-shell article { min-width: 0; overflow-wrap: anywhere; }
.community-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.community-preview a { display: block; min-width: 0; aspect-ratio: 1.38; overflow: hidden; }
.community-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.community-preview a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
@media (max-width: 600px) { .community-preview { grid-template-columns: 1fr; } }
.final-cta { grid-template-columns: minmax(0, 1fr); }
.final-cta h2 { color: #fff; }

/* Exact light footer/office layout, with the extra links from the supplied brief. */
.lf-footer .footer-main { justify-content: flex-start; }
.lf-footer .footer-brand { width: max-content; }
.lf-footer .footer-brand img { padding: 4px; border-radius: 10px; background: #fff; }
.lf-footer address { font-style: normal; }
.lf-footer .footer-main a:hover { color: #030d42; }
.lf-footer .footer-bottom { padding: 18px 0 0; align-items: center; }
.lf-footer .footer-bottom nav, .footer-profile nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-profile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; padding-right: 230px; color: #465772; font-size: 14px; line-height: 1.6; }
.footer-profile a:hover { text-decoration: underline; }
.sms-launcher { right: 16px; bottom: 110px; width: auto; min-height: 58px; padding: 8px 22px 8px 12px; border: 2px solid #fff; background: var(--orange); color: var(--navy-deep); font-size: 16px; }
.sms-launcher svg { box-sizing: content-box; padding: 7px; border-radius: 50%; background: var(--navy); color: #fff; }
.sms-launcher strong { display: inline; position: static; width: auto; height: auto; overflow: visible; clip: auto; }

/* Native dialog provides keyboard focus containment for the local site search. */
body.search-open { overflow: hidden; }
.site-search { width: min(680px, calc(100% - 32px)); max-height: calc(100svh - 48px); padding: 32px; border: 1px solid #cbd3df; border-radius: 14px; color: var(--ink); background: #fff; }
.site-search::backdrop { background: rgba(3, 13, 66,.85); }
.search-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.search-heading h2 { font-size: clamp(26px, 4vw, 38px); color: var(--navy); }
.search-heading button { border: 0; background: transparent; color: var(--navy); font-size: 30px; }
.site-search label { display: block; margin-bottom: 10px; }
.site-search input { width: 100%; min-height: 50px; padding: 12px; border: 1px solid #5e6c7b; border-radius: 5px; background: #fff; }
.site-search [data-search-status] { margin: 16px 0; color: #5e6c7b; font-size: 14px; }
.search-results { display: grid; }
.search-results a { padding: 16px 8px; border-top: 1px solid #cbd3df; color: var(--navy); font-size: 19px; }
.search-results a:hover { background: var(--soft-blue); }

@media (max-width: 1300px) and (min-width: 1101px) {
  .site-header { grid-template-columns: auto auto minmax(170px, 1fr); gap: 20px; }
  .site-header > .language-switcher { display: none; }
  .site-header .desktop-nav { gap: 16px; }
}
@media (max-width: 1100px) {
  :root { --header-height: 60px; }
  .site-header, .site-header.is-scrolled { grid-template-columns: auto minmax(0, 1fr) auto auto; padding: 0 10px; gap: 6px; }
  .site-header .desktop-nav { display: none; }
  .site-header > .language-switcher { display: flex; font-size: 14px; gap: 0; }
  .site-header > .language-switcher > span, .site-header > .language-switcher > a[aria-current="page"] { display: none; }
  .site-header > .language-switcher > a:not([aria-current="page"]) { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }
  .site-header .brand { min-width: 0; }
  .site-header .brand img { width: 36px; height: 36px; padding: 3px; }
  .site-header .brand strong { font-size: 12px; }
  .site-header .header-phone { align-items: center; justify-content: center; min-height: 44px; font-size: clamp(16px, 4.4vw, 22px); line-height: 1.2; }
  .site-header .mobile-toggle { display: grid; align-content: center; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
  .site-header .mobile-toggle span { background: #fff; }
  .mobile-language { font-size: 18px; }
  .about-feature { flex-direction: column; align-items: center; gap: 26px; }
  .about-portrait { flex: none; align-self: center; width: min(100%, 430px); }
  .about-copy { flex: none; width: 100%; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 55px; padding: 24px 28px 80px; }
  .hero-copy { grid-area: 1 / 1 / 2 / 2; position: relative; padding: 18px 0 0; max-width: 650px; }
  .hero-form { grid-area: 2 / 1 / 3 / 2; width: min(100%, 680px); }
  .hero-image { grid-area: 1 / 1 / 2 / 2; top: 0; bottom: 0; left: -28px; width: calc(100% + 56px); max-width: none; height: 100%; object-position: 52% center; opacity: .85; }
  .hero-shade { grid-area: 1 / 1 / 2 / 2; left: -28px; width: calc(100% + 56px); height: 100%; background: linear-gradient(90deg, rgba(3, 13, 66,.88), rgba(3, 13, 66,.46)); }
  .hero h1 { font-size: clamp(52px, 10vw, 82px); }
  .practice-grid { grid-template-columns: 1fr; padding: 0; }
  .practices { padding-top: 80px; padding-bottom: 90px; }
  .practices > .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .gallery-story { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "public public" "orange seated" "portrait seated" "flag flag"; grid-auto-rows: clamp(160px, 45vw, 270px); gap: 10px; }
}
@media (max-width: 600px) {
  .hero { padding-inline: 20px; }
  .hero h1 { font-size: clamp(52px, 15vw, 72px); }
  .hero-shade { left: -20px; width: calc(100% + 40px); }
  .hero-image { left: -20px; width: calc(100% + 40px); }
  .hero-messages { margin-top: 28px; }
  .hero-message-stage { padding-left: 16px; }
  .hero-message { font-size: 18px; }
  .hero-form { padding: 24px; }
  .section { padding-inline: 20px; }
  .section-heading h2, .community-intro h2, .resources h2, .approach h2, .final-cta h2 { font-size: 38px; }
  .practice-panel-copy { padding: 36px 24px; }
  .practice-panel h3 { font-size: 36px; }
  .about-copy p, .bio-continuation p { font-size: 20px; }
  .bio-continuation { padding: 28px 20px; }
  .approach { padding: 48px 22px; }
  .steps, .reasons { grid-template-columns: 1fr; gap: 24px; }
  .steps article, .reasons article { padding: 22px 0; }
  .lf-footer .footer-bottom { align-items: flex-start; }
  .footer-profile { padding-right: 0; }
  .sms-launcher { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 54px; padding: 6px 14px 6px 8px; font-size: 13px; }
  .sms-launcher strong { display: inline; }
  .site-search { padding: 22px; }
}
@media (max-width: 430px) {
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Entire service rows are keyboard-accessible links to local detail pages. */
.service-list > div { padding: 0; }
.service-list > div::after { content: none; }
.service-entry { position: relative; display: grid; gap: 5px; padding: 19px 28px 19px 0; }
.service-entry::after { content: "→"; position: absolute; right: 0; top: 17px; color: var(--orange); }
.service-entry:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.service-entry:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
