/* ==========================================================
   Multiservicios Villa Juárez
   Paleta: azul marino #0B2A5B · amarillo #FFC21A · blanco
   ========================================================== */
:root {
  --navy: #0B2A5B;
  --navy-dark: #071C3F;
  --navy-mid: #143A78;
  --yellow: #FFC21A;
  --yellow-dark: #E6AA00;
  --white: #FFFFFF;
  --bg: #F4F7FC;
  --ink: #0F1E3D;
  --muted: #55657F;
  --line: #E1E8F3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 42, 91, .10);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.55; font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
svg { width: 1em; height: 1em; flex: none; }
body > svg { width: 0; height: 0; overflow: hidden; }
figure { margin: 0; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--yellow); color: var(--navy-dark); box-shadow: 0 6px 18px rgba(255, 194, 26, .35); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 194, 26, .45); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand-emblem {
  width: 36px; height: 41px; flex: none;
  background: url("assets/img/logo.webp") 48.5% 8.5% / 174.8% auto no-repeat;
}
.brand-text { font-size: 12.5px; line-height: 1.15; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.brand-text b { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.nav-links { display: none; gap: 26px; font-weight: 600; font-size: 15px; color: var(--navy); }
.nav-links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.nav-links a:hover { border-color: var(--yellow); }
.btn-nav { padding: 10px 16px; font-size: 14px; }
.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--line); padding: 8px 20px 16px; }
.nav-mobile.is-open { display: flex; }
.nav-mobile a { padding: 14px 0; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: 0; }
@media (max-width: 479px) { .btn-nav { display: none; } .nav-inner { justify-content: space-between; } }
@media (min-width: 960px) { .nav-links { display: flex; } .nav-toggle, .nav-mobile { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); overflow: hidden; background: var(--navy-dark); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
  content: ""; position: absolute; inset: -12px;
  background: url("https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1600&q=70") center / cover no-repeat;
  filter: blur(3px);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 194, 26, .18), transparent 45%),
    linear-gradient(160deg, rgba(7, 28, 63, .93) 0%, rgba(11, 42, 91, .86) 55%, rgba(11, 42, 91, .78) 100%);
}
.hero-inner { position: relative; z-index: 1; display: flex; justify-content: center; padding-top: 56px; padding-bottom: 56px; }
.hero-text { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; color: var(--white); }
.badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .25);
}
.badge svg { width: 16px; height: 16px; color: var(--yellow); }
@media (max-width: 479px) { .badge { font-size: 12px; padding: 8px 12px; gap: 6px; } }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.7rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.hl { color: var(--yellow); }
.lead { font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: rgba(255, 255, 255, .88); max-width: 620px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; }
.hero-chips { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; }
.hero-chips li {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
}
.hero-chips svg { width: 18px; height: 18px; color: var(--yellow); }
@media (min-width: 720px) {
  .hero-actions { flex-direction: row; max-width: none; width: auto; justify-content: center; }
  .hero-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; width: auto; }
  .hero-chips li { flex: none; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: linear-gradient(170deg, var(--navy-dark), var(--navy)); color: var(--white); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 34px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-mid); background: rgba(255, 194, 26, .35); padding: 5px 12px; border-radius: 999px; }
.section-dark .eyebrow { background: var(--yellow); color: var(--navy-dark); }
.section-title { font-size: clamp(1.6rem, 4.6vw, 2.4rem); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; color: var(--navy); text-wrap: balance; }
.section-dark .section-title { color: var(--white); }
.section-sub { color: var(--muted); max-width: 560px; }
.section-dark .section-sub { color: rgba(255, 255, 255, .8); }
@media (min-width: 900px) { .section { padding: 88px 0; } .section-head { margin-bottom: 48px; } }

/* ---------- Service cards (2 columnas en móvil) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(11, 42, 91, .16); }
.card-img { width: 100%; height: 110px; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 12px 14px; gap: 8px; }
.card-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--yellow);
  display: flex; align-items: center; justify-content: center; margin-top: -32px; border: 3px solid var(--white);
  box-sizing: content-box;
}
.card-icon svg { width: 18px; height: 18px; }
.card h3 { font-size: 15px; line-height: 1.2; font-weight: 800; color: var(--navy); }
.card-lead { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.card ul { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.card li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.35; color: var(--ink); }
.card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.card .btn { margin-top: auto; padding: 10px 8px; font-size: 13px; text-align: center; }
@media (min-width: 640px) {
  .cards { gap: 18px; }
  .card-img { height: 150px; }
  .card-body { padding: 18px 18px 18px; gap: 10px; }
  .card h3 { font-size: 18px; }
  .card-lead, .card li { font-size: 14px; }
  .card .btn { padding: 12px 16px; font-size: 14.5px; }
}
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Trust band ---------- */
.trust { background: var(--navy); color: var(--white); padding: 34px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.trust-grid li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 4px; }
.trust-grid strong { font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 800; color: var(--yellow); line-height: 1.1; }
.trust-grid span { font-size: 13px; color: rgba(255, 255, 255, .82); max-width: 190px; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: s; }
.steps li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow);
}
.step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
}
.steps h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.steps p { color: var(--muted); font-size: 15px; max-width: 320px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.work {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 357 / 350;
  background-image: url("assets/img/facebook-trabajos.webp"); background-size: 201.7% auto; background-repeat: no-repeat;
  box-shadow: var(--shadow); cursor: zoom-in; transition: transform .25s ease;
}
.work:hover { transform: translateY(-3px); }
.work-a { background-position: 0% 74%; }
.work-b { background-position: 100% 74%; }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: var(--white);
  font-size: 13px; font-weight: 700; background: linear-gradient(to top, rgba(7, 28, 63, .85), transparent);
}
.work-cta {
  grid-column: 1 / -1; aspect-ratio: auto; min-height: 140px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 22px;
  background: var(--yellow); color: var(--navy-dark); background-image: none;
}
.work-cta strong { font-size: 18px; font-weight: 800; }
.work-cta span { font-size: 14px; font-weight: 600; }
.work-cta svg { width: 30px; height: 30px; margin-top: 4px; }
@media (min-width: 800px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .work-cta { grid-column: auto; aspect-ratio: 357 / 350; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(7, 28, 63, .94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox-stage { width: min(92vw, 78vh * 1.02); }
.lightbox-stage .work { width: 100%; cursor: default; transform: none; }
.lightbox-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--navy-dark); font-size: 28px; line-height: 1; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.is-open { border-color: var(--yellow); box-shadow: var(--shadow); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left;
  padding: 18px 20px; border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--navy);
}
.faq-plus { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--navy-dark); transform: translate(-50%, -50%); transition: transform .25s ease; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.contact-list svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--yellow); color: var(--navy-dark); }
.contact-list div { display: flex; flex-direction: column; line-height: 1.3; }
.contact-list span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .7); }
.contact-list b, .contact-list a { font-size: 17px; font-weight: 700; }
.contact-list em { font-style: normal; font-size: 13.5px; color: rgba(255, 255, 255, .8); }

.form { display: flex; flex-direction: column; gap: 14px; background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.form h3 { font-size: 20px; font-weight: 800; color: var(--navy); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 194, 26, .3); background: var(--white); }
.form .is-invalid { border-color: #D64545; }
.field-error { color: #B42323; font-size: 13.5px; font-weight: 600; }

.map { margin-top: 26px; border-radius: var(--radius); overflow: hidden; height: 300px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .form { padding: 30px; }
  .map { height: 360px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255, 255, 255, .85); padding: 40px 0 28px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.footer-logo { background: var(--white); border-radius: 18px; padding: 10px; }
.footer-logo img { width: 110px; height: 110px; object-fit: contain; }
.footer-text { display: flex; flex-direction: column; gap: 6px; max-width: 420px; font-size: 14.5px; }
.footer-text b { color: var(--white); font-size: 17px; }
.footer-text a { color: var(--yellow); font-weight: 700; }
.footer-copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
@media (min-width: 800px) {
  .footer-inner { flex-direction: row; gap: 32px; text-align: left; }
  .footer-text { align-items: flex-start; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #25D366; color: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3); transition: transform .2s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
