:root {
    --bg: #0b1120;
    --bg-2: #0f172a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.10);
    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;

    /* Marca CADAFAL: azul tinta + acento coral, guiño CMYK */
    --brand: #ff5b39;
    --brand-hover: #ff744f;
    --ink: #2563eb;
    --cyan: #22d3ee;
    --magenta: #ec4899;
    --yellow: #facc15;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', system-ui, sans-serif; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; }

/* ===== Fondo animado ===== */
.background-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.blob-1 { width: 460px; height: 460px; background: var(--brand); top: -120px; right: -80px; }
.blob-2 { width: 420px; height: 420px; background: var(--ink); top: 40%; left: -140px; }
.blob-3 { width: 380px; height: 380px; background: var(--cyan); bottom: -140px; right: 10%; opacity: 0.2; }

/* ===== Marca / logo ===== */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.5px; }
.brand-name { font-size: 1.25rem; }
.brand-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.brand-mark .dot { width: 9px; height: 9px; border-radius: 50%; display: block; }
.dot.c { background: var(--cyan); }
.dot.m { background: var(--magenta); }
.dot.y { background: var(--yellow); }
.dot.k { background: #e2e8f0; }

/* ===== Botones ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 999px; cursor: pointer;
    font-weight: 600; font-size: 1rem; padding: 12px 22px;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 91, 57, 0.7); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-2px); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.10); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }

/* ===== Navbar ===== */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s ease, box-shadow .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 17, 32, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--border); box-shadow: 0 8px 30px -18px rgba(0,0,0,0.8); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-soft); font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-phone { color: var(--text) !important; font-weight: 600 !important; }
.nav-cta { margin-left: 4px; }

/* ===== Layout secciones ===== */
main { display: block; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px 22px; }
.section-alt { max-width: none; background: linear-gradient(180deg, transparent, rgba(37,99,235,0.06), transparent); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.15; }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.08rem; }
.center { text-align: center; margin-top: 44px; }
.glass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(10px); }

/* ===== Hero ===== */
.hero {
    max-width: var(--maxw); margin: 0 auto; padding: 70px 22px 60px;
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero-content .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.5px; }
.hero h1 .highlight { color: var(--brand); }
.hero .lead { color: var(--text-soft); font-size: 1.15rem; margin-top: 22px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { margin-top: 28px; color: var(--text-muted); font-size: 0.98rem; }
.hero-trust .stars { color: var(--yellow); letter-spacing: 2px; margin-right: 6px; }
.hero-trust strong { color: var(--text); }
.muted { color: var(--text-muted); }

/* Tarjeta demo del hero */
.hero-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(12px);
    transform: rotate(1.5deg);
}
.hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hc-title { font-weight: 700; }
.hc-badge { font-size: 0.75rem; font-weight: 600; color: var(--cyan); background: rgba(34,211,238,0.12); padding: 4px 10px; border-radius: 999px; }
.hc-file { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.hc-file-icon { font-size: 1.6rem; }
.hc-file-name { font-weight: 600; }
.hc-file-meta { color: var(--text-muted); font-size: 0.85rem; }
.hc-opts { list-style: none; margin: 16px 0; }
.hc-opts li { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.hc-opts li span { color: var(--text-muted); }
.hc-opts li b { font-weight: 600; }
.hc-total { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 16px; }
.hc-total span { color: var(--text-muted); }
.hc-total strong { font-size: 1.6rem; color: var(--brand); }
.hc-cta { text-align: center; background: var(--brand); color: #fff; font-weight: 600; padding: 12px; border-radius: var(--radius-sm); font-size: 0.95rem; }

/* ===== Trust bar ===== */
.trustbar {
    max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.trust-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; text-align: center; font-weight: 500; color: var(--text-soft); font-size: 0.98rem;
}
.trust-item span { display: block; font-size: 1.5rem; margin-bottom: 4px; }

/* ===== Cards servicios ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,91,57,0.5); background: var(--surface-2); }
.card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-muted); }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 24px;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; font-weight: 800;
    background: var(--brand); color: #fff; margin-bottom: 16px; box-shadow: 0 8px 20px -8px rgba(255,91,57,0.8);
}
.step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.97rem; }

/* ===== CTA band ===== */
.cta-band { padding: 0 22px; }
.cta-inner {
    max-width: var(--maxw); margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,91,57,0.16), rgba(37,99,235,0.16));
    border: 1px solid var(--border); border-radius: 26px;
    text-align: center; padding: 56px 24px;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
.cta-inner p { color: var(--text-soft); margin: 12px 0 28px; font-size: 1.1rem; }

/* ===== Ubicación ===== */
.location { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: stretch; }
.location-info { padding: 32px; }
.location-info h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }
.info-list { list-style: none; display: grid; gap: 20px; margin-bottom: 26px; }
.info-list li { display: flex; gap: 14px; }
.info-ic { font-size: 1.3rem; line-height: 1.4; }
.info-list b { display: block; font-weight: 700; margin-bottom: 2px; }
.info-list div { color: var(--text-soft); }
.info-list a { color: var(--brand); font-weight: 600; }
.location-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hours-note { color: var(--text-muted); font-size: 0.82rem; margin-top: 18px; }
.location-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 380px; }
.location-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 40px; }
.footer-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 54px 22px 30px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.footer-brand .brand-mark { margin-bottom: 12px; }
.footer-brand .brand-name { font-size: 1.3rem; font-weight: 800; }
.footer-brand p { color: var(--text-muted); margin-top: 10px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a, .footer-contact span { color: var(--text-muted); transition: color .2s ease; }
.footer-links a:hover, .footer-contact a:hover { color: var(--brand); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { font-weight: 600; color: var(--text-soft); }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 18px; color: var(--text-muted); font-size: 0.88rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
    .hero-card { max-width: 420px; }
    .location { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .nav-links { display: none; }
    .section { padding: 64px 20px; }
    .trustbar { grid-template-columns: repeat(2, 1fr); }
    .cards, .steps { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1 1 100%; }
}
