/* cluma.net · hoja de estilos única (sin dependencias externas) */

:root {
  --bg: #ffffff;
  --bg-alt: #f3f8fc;
  --surface: #ffffff;
  --text: #0e1a2b;
  --muted: #536179;
  --line: #e0e8f1;
  --brand: #009fe0;          /* azul del logo */
  --brand-deep: #0071ad;     /* para texto y botones sobre blanco (contraste AA) */
  --brand-soft: #e3f4fc;
  --cloud: #d6eef9;
  --btn: #0071ad;
  --btn-ink: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(14 26 43 / .05), 0 10px 30px rgb(14 26 43 / .08);
  --maxw: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --bg-alt: #0f1a2d;
    --surface: #132138;
    --text: #e7eef8;
    --muted: #9fb0c8;
    --line: #22334f;
    --brand-deep: #4cc3f5;
    --brand-soft: #12304a;
    --cloud: #10263d;
    --btn: #009fe0;
    --btn-ink: #04121f;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--brand-deep); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

.ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); stroke: var(--brand-deep); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm, .ico-xs { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-xs { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---------- Cabecera ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 104px; }
.brand__tag { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand-deep); }
.nav__tel { display: inline-flex; align-items: center; gap: 8px; background: var(--btn); color: var(--btn-ink) !important; padding: 10px 16px; border-radius: 12px; font-weight: 600 !important; }
.nav__group { position: relative; }
.nav__sub { position: absolute; top: calc(100% + 14px); left: -16px; min-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; }
.nav__sub::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .95rem; }
.nav__sub a:hover { background: var(--brand-soft); }
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub { display: block; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

@media (max-width: 920px) {
  .brand__tag { display: none; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav > a, .nav__group > a { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }
  .nav__sub { position: static; display: block; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 16px; min-width: 0; background: none; }
  .nav__sub a { padding: 8px 16px; color: var(--muted); }
  .nav__tel { margin: 12px 16px 16px; justify-content: center; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 12px; font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(0 113 173 / .25); }
.btn--primary { background: var(--btn); color: var(--btn-ink); }
.btn--ghost { color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.btn--light { background: #fff; color: #0071ad; }
.btn--outline { color: #fff; border: 1px solid rgb(255 255 255 / .7); background: transparent; }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.hero__nubes { position: absolute; right: -120px; bottom: -40px; width: 1100px; max-width: none; fill: var(--cloud); opacity: .9; pointer-events: none; }
.hero__in { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__in { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 15ch; }
.hero--servicio h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 18ch; }
.eyebrow { color: var(--brand-deep); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .9em; }
.eyebrow--light { color: #bfe9fb; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.hero__checks li { display: flex; align-items: center; gap: 8px; }
.hero__checks svg { color: var(--brand); }
.hero__media { position: relative; }
.hero__foto { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px rgb(14 26 43 / .18); }
.estado { position: absolute; left: -24px; bottom: -28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; min-width: 270px; font-size: .88rem; }
.estado p { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; }
.estado p span { margin-left: auto; color: #16a34a; font-weight: 600; }
.estado svg { color: #16a34a; }
.estado .estado__tit { margin: 0 0 4px; font-weight: 700; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 560px) { .estado { position: static; margin-top: 16px; min-width: 0; } }

.migas { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.migas a { color: var(--muted); }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 8px; margin-bottom: 16px; }

/* ---------- Franja de partners ---------- */
.franja { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.franja__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 44px; padding-top: 22px; padding-bottom: 22px; }
.franja span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.franja strong { font-size: 1.2rem; color: var(--muted); letter-spacing: -.01em; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 660px; margin-bottom: 44px; }
.section__head h2, .split h2, .contacto h2, .cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.section__head p:last-child { color: var(--muted); }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgb(14 26 43 / .14); }
.card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__img { overflow: hidden; }
.card__body { position: relative; padding: 34px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__body .ico { position: absolute; top: -22px; left: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card__more { margin-top: auto; color: var(--brand-deep); font-weight: 600; font-size: .95rem; }

.features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { margin-bottom: 16px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }

.steps { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: paso; border-top: 3px solid var(--brand); padding-top: 20px; }
.steps li::before { content: "0" counter(paso); color: var(--brand-deep); font-weight: 800; font-size: 1.6rem; display: block; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

.partners { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.partner { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner__tag { align-self: flex-start; background: var(--brand-soft); color: var(--brand-deep); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; }
.partner h3 { font-size: 1.4rem; }
.partner p { color: var(--muted); }

/* ---------- Páginas de servicio ---------- */
.incluye { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.incluye li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.incluye li > svg { color: #fff; background: var(--brand); border-radius: 50%; padding: 4px; width: 28px; height: 28px; stroke-width: 2.6; }
.incluye h3 { font-size: 1.05rem; margin-bottom: .3em; }
.incluye p { color: var(--muted); margin: 0; font-size: .95rem; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.2fr; } }
.split p { color: var(--muted); }
.cuando { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cuando li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 16px 20px; font-weight: 500; }

.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--brand-deep); font-size: 1.4rem; line-height: 1; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.section--cta { background: linear-gradient(120deg, #0071ad, #009fe0); color: #fff; padding: 64px 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta p { margin: 0; opacity: .92; max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contacto ---------- */
.section--contacto { background: linear-gradient(135deg, #005f92 0%, #009fe0 100%); color: #fff; }
.contacto { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .contacto { grid-template-columns: 1fr 1.3fr; } }
.contacto__info p { opacity: .92; font-size: 1.1rem; }
.contacto__datos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contacto__datos li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.1rem; font-weight: 600; }
.contacto__datos a { color: #fff; text-decoration: none; }
.form { background: var(--surface); color: var(--text); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px rgb(0 0 0 / .2); display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.form .form__check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form__check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand-deep); }
.form__error { color: #c62828; margin: 0; font-size: .9rem; }
.form__ok { background: #e7f6ec; color: #14532d; border-radius: 10px; padding: 12px 14px; margin: 0; font-weight: 600; }
.form__trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form__nota { color: var(--muted); font-size: .82rem; margin: 0; }
.form .btn { justify-self: start; }

/* ---------- Pie ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 56px; color: var(--muted); font-size: .95rem; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 40px; }
.footer__logo { width: 120px; margin-bottom: 14px; }
.footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--brand-deep); }
.footer__partners { font-weight: 600; font-size: .88rem; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: .88rem; }
.footer__legal p { margin: 0; }

/* ---------- Textos legales y 404 ---------- */
.doc { max-width: 800px; }
.doc h1 { font-size: 2.2rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2em; scroll-margin-top: 90px; }
.doc h3 { font-size: 1.05rem; margin-top: 1.5em; }
.doc__indice { color: var(--muted); }
.doc li { margin-bottom: .4em; }
.doc--centro { text-align: center; padding: 40px 16px; }
.creditos { font-size: .9rem; }
.pendiente { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .card__img img, .partner { transition: none; }
}
