/* Landing comercial Gestión Cofrades — oscuro + dorado (logo) + CTA azul. */
:root {
    --gold: #c8a14a;
    --gold-soft: #e3c885;
    --ink: #0c0c0f;
    --ink-2: #15151b;
    --ink-3: #1d1d26;
    --blue: #2563EB;
    --blue-700: #1d4fbc;
    --paper: #f7f8fb;
    --text: #1b2233;
    --muted: #5b6478;
    --line: #e6e9f0;
    --radius: 16px;
    --maxw: 1140px;
    --shadow: 0 18px 50px -24px rgba(12, 12, 20, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 24px; border-radius: 999px; font-weight: 700;
    font-size: .98rem; cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 28px -12px var(--blue); }
.btn-primary:hover { background: var(--blue-700); }
.btn-gold { background: linear-gradient(135deg, #d8ab4d, #f1d089); color: #120d03; font-weight: 800; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12, 12, 15, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 161, 74, .18);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand img { height: 42px; width: auto; }
.nav-brand b { color: #fff; font-weight: 800; letter-spacing: .2px; font-size: 1.05rem; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #cfd2dc; font-weight: 600; font-size: .94rem; }
.nav-links a:hover { color: var(--gold-soft); }
.nav-links a.btn-gold, .nav-links a.btn-gold:hover { color: #000; }
.nota-ficticio {
    display: inline-flex; align-items: flex-start; gap: 10px;
    margin: 16px auto 0; padding: 11px 18px; max-width: 440px;
    text-align: left; line-height: 1.4;
    background: rgba(200,161,74,.1); border: 1px solid rgba(200,161,74,.4);
    border-radius: 14px; color: #6b551f; font-size: .9rem; font-weight: 600;
}
.nota-ficticio .bi { color: var(--gold); font-size: 1.1rem; line-height: 1.4; flex: 0 0 auto; }
.nota-ficticio strong { color: #5a4716; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; margin-left: auto; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 480px at 78% -10%, rgba(200,161,74,.20), transparent 60%),
        radial-gradient(700px 420px at 10% 110%, rgba(37,99,235,.18), transparent 60%),
        linear-gradient(180deg, var(--ink), var(--ink-2));
    color: #fff;
    padding: 86px 0 96px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.12; margin: 0 0 18px; font-weight: 800; letter-spacing: -.5px; }
.hero h1 .accent { background: linear-gradient(120deg, var(--gold), var(--gold-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.16rem; color: #c9cdd9; margin: 0 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(380px, 80%); filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); border-radius: 24px; }
.hero-trust { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; color: #aeb3c2; font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .bi { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 10px 0 12px; font-weight: 800; letter-spacing: -.4px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 22px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(200,161,74,.4); }
.feature .ic {
    width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(200,161,74,.16)); color: var(--blue);
    font-size: 1.4rem; margin-bottom: 14px;
}
.feature h3 { font-size: 1.04rem; margin: 0 0 6px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Migración ---------- */
.migracion { background: linear-gradient(135deg, var(--ink), var(--ink-3)); color: #fff; border-radius: 22px; padding: 46px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.migracion h2 { margin: 0 0 8px; font-size: 1.7rem; font-weight: 800; }
.migracion p { margin: 0; color: #c9cdd9; max-width: 620px; }
.migracion .badge-mig { font-weight: 800; color: var(--gold-soft); }

/* ---------- Planes (todo incluido + tamaños) ---------- */
.plan-all {
    max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
    border-radius: 24px; padding: 40px; box-shadow: var(--shadow); position: relative; text-align: center;
}
.plan-all-tag {
    display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #1a1407; font-weight: 800; font-size: .82rem; letter-spacing: .4px; padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.plan-all-grid {
    list-style: none; margin: 0 0 30px; padding: 0; text-align: left;
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px;
}
.plan-all-grid li { display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; font-weight: 500; }
.plan-all-grid li .bi { color: var(--gold); margin-top: 3px; font-size: 1.05rem; flex: 0 0 auto; }
.plan-sizes { border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 28px; }
.plan-sizes-lbl { display: block; color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.size-chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.size-chip {
    display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 13px 18px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
}
.size-chip b { font-size: 1.02rem; color: var(--ink); }
.size-chip small { color: var(--muted); font-size: .82rem; }
.size-chip.is-feat { border-color: var(--gold); background: #fff; box-shadow: 0 8px 22px -16px var(--gold); }

/* ---------- Demo ---------- */
.demo-box {
    background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff;
    border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
    border: 1px solid rgba(200,161,74,.25);
}
.demo-box h2 { margin: 0 0 10px; font-size: 1.8rem; font-weight: 800; }
.demo-box p { color: #c9cdd9; margin: 0 0 22px; }
.demo-creds { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px 20px; }
.demo-creds .row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: .95rem; }
.demo-creds .row span:first-child { color: #aeb3c2; }
.demo-creds .row code { color: var(--gold-soft); font-weight: 700; }
.demo-creds .note { color: #8b91a3; font-size: .82rem; margin: 12px 0 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.contact-info h2 { font-size: 1.9rem; margin: 0 0 12px; font-weight: 800; }
.contact-info p { color: var(--muted); }
.contact-info .chan { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.contact-info .chan a { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; }
.contact-info .chan .bi { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chan .wa .bi { background: #25d366; color: #fff; }
.chan .mail .bi { background: rgba(37,99,235,.12); color: var(--blue); }
.chan .ig .bi { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }

form.lead { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
form.lead .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.lead .fld { margin-bottom: 16px; }
form.lead label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
form.lead input, form.lead textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; font: inherit;
    background: #fbfcfe; transition: border-color .15s ease, box-shadow .15s ease;
}
form.lead input:focus, form.lead textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
form.lead textarea { resize: vertical; min-height: 110px; }
form.lead .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
form.lead .btn { width: 100%; justify-content: center; }
.rgpd { color: var(--muted); font-size: .78rem; margin: 14px 0 0; text-align: center; }

.alert { padding: 13px 16px; border-radius: 11px; margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.alert.ok { background: #e7f6ec; color: #1d6b3a; border: 1px solid #b6e2c4; }
.alert.bad { background: #fdeaea; color: #a3262c; border: 1px solid #f3c2c4; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: border-color .15s ease, box-shadow .15s ease; }
.faq-item[open] { border-color: rgba(37,99,235,.4); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: 0 0 auto; color: var(--blue); font-size: 1.1rem; transition: transform .2s ease; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-a { padding: 0 0 20px; color: var(--muted); font-size: .96rem; line-height: 1.65; }

/* ---------- Capturas ---------- */
.shots-group { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 6px 0 14px; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 34px; }
.shot { margin: 0; }
.shot-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: var(--shadow); transition: transform .15s ease; }
.shot-btn:hover { transform: translateY(-3px); }
.shot-btn img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.shot figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); text-align: center; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,8,12,.93); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 96vw; max-height: 92vh; text-align: center; }
.lightbox img { max-width: 96vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox figcaption { color: #e7e3d8; margin-top: 12px; font-size: .95rem; }
.lightbox-close { position: absolute; top: 14px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.shots-more { text-align: center; max-width: 720px; margin: 8px auto 0; }
.shots-more p { color: var(--muted); font-size: 1.02rem; margin: 0 0 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aeb3c2; padding: 40px 0; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer .fbrand { display: flex; align-items: center; gap: 10px; }
.footer .fbrand img { height: 38px; }
.footer .fbrand b { color: #fff; }
.footer .fsocial { display: flex; align-items: center; gap: 14px; }
.footer .fsocial a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); transition: transform .15s ease; }
.footer .fsocial a:hover { transform: translateY(-2px); }
.footer .fsocial a.fwa { background: #25d366; }
.footer small { color: #80869a; }

/* Botón flotante de WhatsApp (siempre visible) */
.wa-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 999;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 20px 13px 16px; border-radius: 999px;
    background: #25d366; color: #fff; font-weight: 700; font-size: 1rem;
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
    transition: transform .15s ease, box-shadow .15s ease;
}
.wa-fab .bi { font-size: 1.5rem; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,211,102,.55); color: #fff; }
@media (max-width: 560px) {
    .wa-fab { right: 16px; bottom: 16px; padding: 14px; }
    .wa-fab span { display: none; }
    .wa-fab .bi { font-size: 1.6rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .hero .wrap { grid-template-columns: 1fr; text-align: center; }
    .hero-cta, .hero-trust { justify-content: center; }
    .hero-art { order: -1; }
    .hero-art img { width: min(260px, 60%); }
    .contact { grid-template-columns: 1fr; }
    .demo-box, .migracion { grid-template-columns: 1fr; text-align: center; }
    .demo-creds .row { justify-content: center; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--ink-2); padding: 18px 22px; gap: 14px; border-bottom: 1px solid rgba(200,161,74,.18); }
    .nav-toggle { display: block; }
    .features { grid-template-columns: 1fr; }
    .plan-all-grid { grid-template-columns: 1fr; }
    .plan-all { padding: 28px; }
    .size-chip { min-width: 0; flex: 1; }
    form.lead .grid2 { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .migracion, .demo-box { padding: 30px; }
}
