/* Librería Zorro Azul — estilos propios (sin framework) */
:root {
  --blue: #1f4192;
  --blue-dark: #14295e;
  --blue-soft: #e8eefb;
  --yellow: #ffc83d;
  --paper: #faf8f3;
  --ink: #1b2233;
  --muted: #5a6478;
  --line: #e2e6ef;
  --wa: #1fa855;
  --wa-dark: #158540;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 41, 94, 0.12);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--blue-dark); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,243,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand img { width: 200px; height: 40px; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--blue-dark); cursor: pointer; }
.nav-toggle .icon { width: 1.8rem; height: 1.8rem; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: .5rem .8rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-dark); }
.nav .btn { padding: .55rem 1rem; color: #fff; }
.nav .btn:hover { background: var(--wa-dark); }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 64px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: .8rem; }
  .nav .btn { justify-content: center; margin-top: .5rem; }
}

/* Hero */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,41,94,.94) 0%, rgba(20,41,94,.78) 55%, rgba(20,41,94,.45) 100%); z-index: -1; }
.hero .wrap { padding-block: clamp(3rem, 9vw, 6.5rem); max-width: var(--max); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { font-size: 1.2rem; max-width: 40ch; opacity: .95; }
.eyebrow { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Secciones */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.alt { background: #fff; }

/* Tarjetas de servicios */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: var(--blue-soft); }
.card div { padding: 1.1rem 1.2rem 1.3rem; }
.card h3 { margin-bottom: .3rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .more { display: inline-block; margin-top: .7rem; font-weight: 700; color: var(--blue); font-size: .95rem; }

/* Razones */
.features { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { padding: 1.3rem; border-radius: var(--radius); background: var(--blue-soft); }
.feature h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Reseñas */
.reviews { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 0; }
.review blockquote { margin: 0 0 1rem; font-size: 1rem; }
.review figcaption { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; }
.stars { color: #e8a400; letter-spacing: 2px; font-size: .95rem; margin-bottom: .5rem; }

/* Contacto */
.contact { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.info-list { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .9rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list .icon { color: var(--blue); margin-top: .2rem; }
.map { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); background: var(--blue-soft); }

/* Banda CTA */
.band { background: var(--blue); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band .cta-row { justify-content: center; }

/* Páginas de servicio */
.page-hero { background: var(--blue-dark); color: #fff; padding-block: 2.2rem 2.6rem; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { max-width: 62ch; margin: 0; opacity: .94; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; opacity: .85; }
.crumbs a { color: #fff; }
.service-layout { display: grid; gap: 2rem; }
@media (min-width: 860px) { .service-layout { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.service-layout img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l3 3 5-6' fill='none' stroke='%231b2233' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); }
.faq p { margin: .6rem 0 0; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: .6rem; }
.related a { background: var(--blue-soft); text-decoration: none; padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }

/* Formulario de pedido */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid #c9d1e3; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(31,65,146,.2); }
.field small { color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); }
.quote { background: var(--blue-soft); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.quote strong { font-size: 1.4rem; color: var(--blue-dark); }
.note { background: #fff7de; border-left: 4px solid var(--yellow); padding: .9rem 1.1rem; border-radius: 8px; font-size: .97rem; }
.hidden { display: none !important; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #dfe6f7; padding-block: 2.5rem 6rem; font-size: .97rem; }
.site-footer a { color: #fff; }
.foot { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h2 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .88rem; opacity: .85; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; background: var(--wa); color: #fff; display: flex; align-items: center; gap: .6rem; padding: .85rem 1.15rem; border-radius: 999px; text-decoration: none; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.wa-float:hover { background: var(--wa-dark); color: #fff; }
.wa-float .icon { width: 1.6rem; height: 1.6rem; }
@media (max-width: 480px) { .wa-float span { display: none; } .wa-float { padding: 1rem; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
