/* =========================================================
   Corporativo Jurídico Montenegro & Asociados
   Hoja de estilos principal
   ========================================================= */
:root {
  --navy: #0D223D;
  --navy-2: #14305A;
  --navy-3: #1B3B68;
  --gold: #C9A227;
  --gold-2: #E3C04D;
  --gold-soft: #F4EBCB;
  --ink: #1C2533;
  --muted: #5B6575;
  --line: #E4E1D8;
  --soft: #F7F5F0;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-dark: #1DA851;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(13, 34, 61, .06);
  --shadow: 0 14px 40px rgba(13, 34, 61, .12);
  --shadow-lg: 0 24px 60px rgba(13, 34, 61, .18);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: .2px; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--muted); }

/* ---------- Íconos ---------- */
.ico { width: 22px; height: 22px; flex-shrink: 0; }
.ico-xs { width: 13px; height: 13px; }
.ico-sm { width: 17px; height: 17px; }
.ico-lg { width: 46px; height: 46px; }
.ico-wa { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .2px;
  border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(201, 162, 39, .35); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); box-shadow: 0 10px 26px rgba(13, 34, 61, .28); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-dark); box-shadow: 0 12px 28px rgba(37, 211, 102, .35); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(227, 192, 77, .18);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 62px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand img { height: 52px; }
.brand-text { color: var(--white); font-family: var(--serif); font-size: 22px; font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; color: rgba(255,255,255,.88);
  font-size: 15px; font-weight: 500; position: relative;
}
.main-nav > ul > li > a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: center; transition: transform .3s ease;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { color: var(--white); }
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.active::after { transform: scaleX(1); }
.sub-toggle { display: none; }

.submenu {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  max-height: 70vh; overflow-y: auto;
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.has-sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.submenu a { display: block; padding: 9px 22px; font-size: 14.5px; color: var(--ink); transition: background .2s ease, color .2s ease, padding .2s ease; }
.submenu a:hover { background: var(--soft); color: var(--navy); padding-left: 26px; }

.nav-cta { padding: 12px 22px; font-size: 14.5px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: var(--white); width: 46px; height: 46px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .i-close { display: none; }
.nav-toggle.open .i-open { display: none; }
.nav-toggle.open .i-close { display: inline-flex; }
.nav-toggle span { display: inline-flex; }

/* ---------- Slider ---------- */
.hero-slider { position: relative; width: 100%; overflow: hidden; background: var(--navy); transition: height .5s ease; }
.slider-track { display: flex; align-items: flex-start; transition: transform 1s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.slide { flex-shrink: 0; }
.slide img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.bg-soft { background: var(--soft); }
.navy-bg { background: var(--navy); }
.dark-bg, .cta-band, .page-hero { background-size: cover; background-position: center; background-repeat: no-repeat; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 18px 0 0; }
.section-head.light h2 { color: var(--white); }
.section-head.light p { color: rgba(255,255,255,.78); }

.title-line { display: block; width: 70px; height: 3px; margin: 0 auto; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 2px; }
.title-line.left { margin: 0 0 22px; }
.subtitle { font-family: var(--serif); font-size: 23px; font-style: italic; color: var(--gold); margin: -6px 0 18px; line-height: 1.35; }

.rich p { color: var(--muted); }
.rich h3 { font-size: 27px; margin: 34px 0 14px; }
.rich-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.rich-list li { position: relative; padding-left: 30px; color: var(--ink); }
.rich-list li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 16px; height: 9px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* ---------- Quiénes somos ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.about-text h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 16px; }
.about-text .rich { margin-bottom: 30px; font-size: 16.5px; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 11 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Tarjetas de servicio ---------- */
.svc-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201, 162, 39, .55); }
.svc-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 25px; margin-bottom: 10px; }
.svc-body p { color: var(--muted); font-size: 15px; line-height: 1.65; flex: 1; margin-bottom: 18px; }
.svc-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--navy); transition: gap .25s ease, color .25s ease; }
.svc-card:hover .svc-more { gap: 12px; color: var(--gold); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.area-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -20px 0 50px; }
.area-tabs a { padding: 9px 20px; border: 1px solid var(--line); border-radius: 40px; font-size: 14.5px; font-weight: 500; color: var(--navy); transition: all .25s ease; }
.area-tabs a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.area-block { margin-bottom: 64px; scroll-margin-top: calc(var(--header-h) + 20px); }
.area-block:last-child { margin-bottom: 0; }
.area-title { font-size: 30px; margin-bottom: 26px; display: flex; align-items: center; gap: 18px; }
.area-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- Carrusel continuo ---------- */
.marquee { overflow: hidden; width: 100%; padding: 14px 0 24px; cursor: grab; touch-action: pan-y; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.marquee:active { cursor: grabbing; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-item { width: 340px; flex-shrink: 0; padding: 0 14px; }
.marquee-item .svc-card { height: 100%; }

/* ---------- Tarjetas con ícono ---------- */
.icon-grid { display: grid; gap: 28px; }
.icon-grid.cols-1 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
.icon-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.icon-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.icon-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.icon-card { text-align: center; padding: 42px 30px; border-radius: var(--radius); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease; }
.icon-card .icon-wrap { display: flex; justify-content: center; color: var(--gold); margin-bottom: 20px; }
.icon-card h3 { font-size: 26px; margin-bottom: 12px; }
.icon-card p { margin: 0; font-size: 15.5px; }
.icon-card.glass { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.icon-card.glass h3 { color: var(--white); }
.icon-card.glass p { color: rgba(255,255,255,.75); }
.icon-card.glass:hover { transform: translateY(-6px); border-color: rgba(227, 192, 77, .6); background: rgba(255,255,255,.07); }
.icon-card.bordered { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.icon-card.bordered p { color: var(--muted); }
.icon-card.bordered:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201, 162, 39, .55); }
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1000px; }
.mv-grid .icon-card { padding: 50px 40px; }
.mv-grid .icon-card p { font-size: 16.5px; line-height: 1.75; }
.why { position: relative; }

/* ---------- Banda de WhatsApp ---------- */
.cta-band { padding: 120px 0; text-align: center; }
.cta-inner { max-width: 780px; }
.cta-inner h2 { color: var(--white); font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 18px; }
.cta-inner p { color: rgba(255,255,255,.85); font-size: 18px; margin: 22px auto 36px; max-width: 640px; }

/* ---------- Cabecera de páginas internas ---------- */
.page-hero { padding: 120px 0 110px; text-align: left; }
.page-hero-inner { max-width: 1220px; }
.page-hero h1 { color: var(--white); font-size: clamp(38px, 5.2vw, 62px); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 640px; margin-bottom: 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .current { color: var(--gold-2); }

/* ---------- Detalle de servicio ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start; }
.detail-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 38px; box-shadow: var(--shadow); }
.detail-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.detail-main h2 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 16px; }
.detail-rich { font-size: 16.5px; }
.detail-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 26px; }
.side-box { border-radius: var(--radius); padding: 32px 28px; }
.side-cta { background: var(--navy); color: var(--white); border: 1px solid var(--navy); display: grid; gap: 14px; }
.side-cta h3 { color: var(--white); font-size: 27px; margin: 0; }
.side-cta p { color: rgba(255,255,255,.8); margin: 0 0 6px; font-size: 15px; }
.side-list { background: var(--white); border: 1px solid var(--line); }
.side-list h3 { font-size: 24px; margin-bottom: 14px; }
.side-list ul { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-size: 15px; color: var(--ink); transition: color .25s ease, padding .25s ease; }
.side-list a:hover { color: var(--gold); padding-left: 6px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 16px; }
.muted-text { color: var(--muted); font-size: 16.5px; }
.contact-cards { display: grid; gap: 16px; margin-top: 30px; }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(201, 162, 39, .55); }
.contact-card strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-card > span:last-child { font-size: 16.5px; font-weight: 600; color: var(--navy); }
.cc-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold-2); flex-shrink: 0; }
.cc-icon .ico-wa { width: 22px; height: 22px; }

.contact-form-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.contact-form-box h3 { font-size: 30px; margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--soft); border: 1px solid var(--line); border-radius: 6px; outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D223D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(201, 162, 39, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--navy); width: 16px; height: 16px; }
.check a { color: var(--navy); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 6px; font-size: 15px; margin-bottom: 20px; border: 1px solid; }
.alert-success { background: #ECF8F0; border-color: #A7DDB8; color: #1D6B37; }
.alert-error { background: #FDF0F0; border-color: #F0B9B9; color: #9B2C2C; }

/* ---------- Páginas legales ---------- */
.legal-rich h3 { font-size: 28px; }
.legal-rich p, .legal-rich li { font-size: 16.5px; }
.legal-date { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #091A30; color: rgba(255,255,255,.72); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer-logo { width: 180px; height: auto; margin-bottom: 22px; }
.footer-brand p { font-size: 15px; line-height: 1.75; }
.footer-col h4 { color: var(--white); font-size: 23px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { font-size: 15px; transition: color .25s ease, padding .25s ease; }
.footer-links a:hover { color: var(--gold-2); padding-left: 4px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.footer-contact .ico, .footer-contact .ico-wa { color: var(--gold-2); width: 19px; height: 19px; }
.footer-contact a:hover { color: var(--gold-2); }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: all .3s ease; }
.social a .ico, .social a .ico-wa { width: 18px; height: 18px; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 14px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal-links a { font-size: 14px; color: rgba(255,255,255,.72); }
.legal-links a:hover { color: var(--gold-2); }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform .3s ease, background .3s ease;
}
.wa-float .ico-wa { width: 32px; height: 32px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: waPulse 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.07); background: var(--wa-dark); }
.wa-tip {
  position: absolute; right: 74px; white-space: nowrap;
  background: var(--white); color: var(--navy); font-size: 14px; font-weight: 600;
  padding: 9px 16px; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateX(8px); transition: all .3s ease;
}
.wa-float:hover .wa-tip { opacity: 1; visibility: visible; transform: translateX(0); }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slider-track { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 18px; }
  .main-nav > ul > li > a { padding: 10px 11px; }
  .nav-cta { padding: 11px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root { --header-h: 78px; }
  .brand img, .site-header.scrolled .brand img { height: 48px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--navy); flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px 24px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav > ul > li > a { padding: 16px 4px; font-size: 17px; }
  .main-nav > ul > li > a::after { display: none; }
  .main-nav > ul > li > a .ico-xs { display: none; }
  .sub-toggle { display: flex; position: absolute; right: 0; top: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--gold-2); cursor: pointer; transition: transform .3s ease; }
  .has-sub.sub-open .sub-toggle { transform: rotate(180deg); }
  .has-sub::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; min-width: 0; padding: 0 0 12px; display: none; max-height: none; }
  .has-sub.sub-open .submenu { display: block; }
  .has-sub:hover .submenu { transform: none; }
  .submenu a { color: rgba(255,255,255,.75); padding: 9px 14px; }
  .submenu a:hover { background: transparent; color: var(--gold-2); }
  .nav-cta { margin-top: 26px; width: 100%; padding: 15px; }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-grid.cols-3, .icon-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 44px; }
  .detail-side { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }
  .svc-grid, .icon-grid.cols-2, .icon-grid.cols-3, .icon-grid.cols-4, .mv-grid { grid-template-columns: 1fr; }
  .marquee-item { width: 290px; padding: 0 10px; }
  .page-hero { padding: 80px 0 72px; }
  .cta-band { padding: 84px 0; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-box { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .legal-links { justify-content: center; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .wa-tip { display: none; }
  .btn-lg { padding: 15px 24px; font-size: 15px; white-space: normal; }
  .mv-grid .icon-card { padding: 40px 26px; }
}
