/* =========================================================
   ANDAH Corp — estilos del sitio
   Colores de marca: cambia los valores de :root para ajustarlos
   ========================================================= */
:root {
  --red: #d22f25;
  --red-dark: #a8231b;
  --red-soft: #fdeceb;
  --ink: #1b1b1b;
  --ink-2: #333;
  --muted: #5e5e5e;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --dark: #161616;
  --dark-2: #222;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --font-head: "League Spartan", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink-2); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.small { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { background: var(--wa); color: #0b3d1f; }
.btn-whatsapp:hover { background: #1fb558; color: #0b3d1f; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand img { width: 138px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-list > li > a, .sub-toggle { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; background: none; border: 0; font-family: inherit; cursor: pointer; border-radius: 8px; }
.nav-list > li > a:hover, .sub-toggle:hover { background: var(--bg-alt); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--red); }
.has-sub { position: relative; }
.sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none; }
.has-sub.open .sub-menu { display: block; }
.sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .96rem; }
.sub-menu a:hover { background: var(--red-soft); color: var(--red-dark); }
.nav-cta { padding: .65em 1.2em; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s, opacity .2s; }
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px 40px; overflow-y: auto; display: none; gap: 16px; }
  .nav-open .main-nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li > a, .sub-toggle { padding: 14px 8px; font-size: 1.08rem; width: 100%; text-align: left; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #d6d6d6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .8em; }
.eyebrow-light { color: #ff8a82; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section-dark .lead { color: #bdbdbd; }

/* ---------- Portada (inicio) ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #e6e6e6; padding: clamp(64px, 10vw, 120px) 0; }
.hero::before, .hero::after { content: ""; position: absolute; width: 520px; height: 520px; transform: rotate(45deg); border-radius: 24px; pointer-events: none; }
.hero::before { right: -160px; top: -120px; background: linear-gradient(135deg, #2a2a2a, #1d1d1d); }
.hero::after { right: 40px; top: 160px; width: 140px; height: 140px; background: var(--red); opacity: .9; border-radius: 10px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--red); }
.hero .lead { color: #c9c9c9; font-size: 1.25rem; max-width: 560px; }
.hero-media img { border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: .95rem; color: #bdbdbd; }
.hero-badges li::before { content: "✓"; color: var(--red); font-weight: 700; margin-right: 8px; }

/* Encabezado de páginas internas */
.page-hero { position: relative; overflow: hidden; background: var(--dark); color: #d6d6d6; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.page-hero::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; transform: rotate(45deg); border-radius: 18px; background: linear-gradient(135deg, #2b2b2b, #1e1e1e); box-shadow: -60px -60px 0 -40px var(--red); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: #c4c4c4; max-width: 720px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::after { display: none; }
}

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.section-alt .card { border-color: transparent; }
.card h3 { margin-top: 4px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--red-soft); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 16px; }
.card-media { margin: -28px -28px 22px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 2 / 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-link:hover { transform: translateY(-3px); border-color: var(--red); color: inherit; }
.card-link .more { margin-top: auto; padding-top: 14px; color: var(--red); font-weight: 600; }
.card-dark { background: var(--dark-2); border-color: #333; color: #cfcfcf; box-shadow: none; }
.card-dark h3 { color: #fff; }

/* Listas con palomita */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23d22f25' d='M8.2 13.6 4.6 10l1.3-1.3 2.3 2.3 5.9-5.9 1.3 1.3z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checklist strong { color: var(--ink); }
.section-dark .checklist strong, .card-dark .checklist strong { color: #fff; }
.section-dark .checklist li::before, .card-dark .checklist li::before { background-color: rgba(210,47,37,.2); }

/* Imagen + texto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split-reverse .split-media { order: 2; }
.split-media img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
}

/* Pasos numerados */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: paso; }
.steps li { counter-increment: paso; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.steps li::before { content: counter(paso, decimal-leading-zero); display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; font-size: .97rem; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; margin-top: 36px; }
.stat { border-left: 3px solid var(--red); padding: 4px 0 4px 16px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: #fff; line-height: 1.1; }
.stat span { font-size: .95rem; color: #bdbdbd; }

/* Etiquetas */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.section-dark .tags li { background: var(--dark-2); border-color: #3a3a3a; color: #eee; }

/* Aviso destacado */
.callout { background: var(--red-soft); border-left: 4px solid var(--red); border-radius: 10px; padding: 18px 22px; color: var(--ink); }
.callout p:last-child { margin: 0; }

/* Testimonio */
.quote { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.quote p { font-size: 1.2rem; color: var(--ink); font-style: italic; }
.quote footer { font-weight: 600; color: var(--muted); }

/* Preguntas frecuentes */
.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 22px 18px; }
.faq .faq-body > :last-child { margin-bottom: 0; }

/* Franja de llamada a la acción */
.cta-band { background: var(--red); color: #fff; border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #ffe3e1; max-width: 620px; }
.cta-band .btn { background: #fff; color: var(--red-dark); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* Antes / después */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.before-after figure { margin: 0; position: relative; }
.before-after img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.before-after figcaption { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.7); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.before-after figure:last-child figcaption { background: var(--red); }

/* Texto largo (avisos de privacidad) */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #8f8f8f; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: #ff8a82; }
.hours-card { background: var(--dark-2); border: 1px solid #333; border-radius: var(--radius); padding: 28px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid #333; text-align: left; font-weight: 400; }
.hours td { text-align: right; color: #fff; }
.hours tr.today th, .hours tr.today td { color: #ff8a82; font-weight: 700; }
.section-dark .small { color: #9a9a9a; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pie de página ---------- */
.site-footer { background: #0f0f0f; color: #a8a8a8; padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 160px; margin-bottom: 14px; }
.footer-title { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; }
.footer-links, .social { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.site-footer a { color: #d0d0d0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.footer-bottom { border-top: 1px solid #262626; margin-top: 40px; padding-top: 20px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
@media (max-width: 767px) { .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; } }

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

@media (max-width: 520px) {
  .card { padding: 22px; }
  .card-media { margin: -22px -22px 18px; }
  .brand img { width: 128px; }
}

/* Ajustes */
.section-tight { padding: 32px 0 0; }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.steps.steps-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 760px) { .page-hero::after { display: none; } }
@media (max-width: 980px) {
  .main-nav { position: absolute; inset: auto; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); border-top: 1px solid var(--line); }
  .sub-toggle:hover { background: none; }
}
