/* SICOIN PERU — hoja de estilos única del sitio (mobile-first) */

:root {
    --ink: #14163a;
    --ink-soft: #23265a;
    --brand: #5454c5;
    --brand-dark: #3f3fa6;
    --brand-soft: #eef0fb;
    --accent: #f5a524;
    --whatsapp: #128c4a;
    --text: #1f2340;
    --muted: #5b6080;
    --line: #e2e5f1;
    --surface: #f6f7fc;
    --white: #fff;
    --danger: #c0392b;
    --ok: #1c7c4a;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(20, 22, 58, .08);
    --shadow-sm: 0 2px 8px rgba(20, 22, 58, .06);
    --wrap: 1140px;
    --header-h: 72px;
    --font: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
body.nav-open { overflow: hidden; }

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Botones ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--brand-soft); color: var(--ink); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #0e743d; color: var(--white); }

/* ---------- Cabecera ---------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); }
}

.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--header-h); gap: 16px;
}
.site-header .wrap > * { min-width: 0; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 1 auto; min-width: 0; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
    display: grid; place-items: center; flex: none;
    width: 43px; height: 43px; border-radius: 11px;
    background: linear-gradient(145deg, var(--ink-soft), var(--brand));
    color: var(--white); font-size: 1.28rem; font-weight: 800; letter-spacing: -.08em;
    box-shadow: 0 4px 12px rgba(84, 84, 197, .22);
}
.brand-name { display: block; font-size: 1rem; font-weight: 800; line-height: 1.1; letter-spacing: .015em; }
.brand-tagline { display: block; margin-top: 3px; color: var(--muted); font-size: .61rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
@media (min-width: 640px) { .brand-name { font-size: 1.14rem; } .brand-tagline { font-size: .68rem; } }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    flex: none; width: 46px; height: 46px; padding: 0;
    background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
    display: none;
    position: fixed; left: 0; right: 0; top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(20, 22, 58, .2);
    padding: 18px 20px 24px;
    padding: 18px max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.site-nav.is-open { display: block; }
.nav-scrim { position: fixed; inset: var(--header-h) 0 0; z-index: 99; width: 100%; border: 0; background: rgba(15, 20, 53, .55); cursor: pointer; }
.nav-scrim[hidden] { display: none; }
.nav-intro { margin: 0 0 14px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.site-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: 680px; display: grid; gap: 8px; }
.site-nav li a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between; min-height: 54px;
    padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none;
}
.site-nav li a:not(.btn)::after { content: "→"; color: var(--brand); font-size: 1.2rem; }
.site-nav li a:not(.btn):hover,
.site-nav li a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); border-color: #cfd3ee; }
.site-nav .nav-cta { margin-top: 10px; }
.site-nav .nav-cta .btn { width: 100%; min-height: 54px; }
.nav-contact { max-width: 680px; margin: 16px auto 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.nav-contact a { color: var(--brand-dark); font-weight: 700; }

@media (min-width: 1160px) {
    .nav-toggle { display: none; }
    .site-nav {
        display: block; position: static; max-height: none; overflow: visible; padding: 0;
        background: none; border: 0; box-shadow: none;
    }
    .site-nav ul { display: flex; align-items: center; gap: 2px; max-width: none; }
    .site-nav li a:not(.btn) {
        min-height: 42px; padding: 8px 11px; border: 0; border-radius: 999px; background: transparent; font-size: .9rem;
    }
    .site-nav li a:not(.btn)::after { display: none; }
    .site-nav li a:not(.btn):hover { background: var(--brand-soft); }
    .site-nav li a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
    .site-nav .nav-cta { margin: 0 0 0 6px; }
    .site-nav .nav-cta .btn { width: auto; min-height: 42px; padding: .6em 1em; font-size: .9rem; white-space: nowrap; }
    .nav-intro, .nav-contact { display: none; }
}
@media (max-width: 390px) {
    .brand-name { font-size: .87rem; }
    .brand-tagline { font-size: .52rem; letter-spacing: .04em; }
    .brand-mark { width: 39px; height: 39px; }
}

/* ---------- Secciones ---------- */

.section { padding: 48px 0; }
.section-alt { background: var(--surface); }
@media (min-width: 900px) { .section { padding: 64px 0; } }
.billing-page .section { padding: 36px 0; }
.billing-page .section-head { margin-bottom: 24px; }
@media (min-width: 900px) {
    .billing-page .section { padding: 48px 0; }
    .billing-page .split { gap: 40px; }
}

.section-head { max-width: 680px; margin: 0 0 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
    display: inline-block; margin-bottom: 12px;
    color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
    position: relative; overflow: hidden;
    background-color: var(--ink);
    background-image: linear-gradient(90deg, rgba(10, 14, 42, .97) 0%, rgba(15, 20, 53, .86) 42%, rgba(17, 21, 49, .22) 100%), url("../images/fotos/hero-industrial-ia.jpg");
    background-position: center, center 48%;
    background-size: cover;
    color: #d9dcf5;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(10, 14, 42, .36), transparent 36%);
}
.hero .wrap {
    position: relative; display: flex; align-items: center;
    min-height: 520px; padding-top: 72px; padding-bottom: 80px;
}
.hero .wrap > div { max-width: 690px; }
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--accent); }
.hero .eyebrow { color: #b9bdf5; }
.hero-lead { font-size: 1.1rem; max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 639px) {
    .hero { background-image: linear-gradient(90deg, rgba(10, 14, 42, .92), rgba(15, 20, 53, .72)), url("../images/fotos/hero-industrial-ia.jpg"); }
    .hero .wrap { min-height: 480px; padding-top: 64px; padding-bottom: 72px; }
    .hero-actions .btn { flex: 1 1 100%; }
}

/* Cabecera de páginas interiores */
.page-hero {
    background: linear-gradient(135deg, var(--ink), #2a2d75);
    color: #d9dcf5; padding: 48px 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: .3em; }
.page-hero p { margin: 0; max-width: 46em; font-size: 1.05rem; }
.page-hero .eyebrow { color: #b9bdf5; }
@media (min-width: 900px) { .page-hero { padding: 64px 0; } }
.about-hero {
    background-color: var(--ink);
    background-image: linear-gradient(90deg, rgba(10, 14, 42, .96), rgba(15, 20, 53, .82) 52%, rgba(17, 21, 49, .52)), url("../images/fotos/nosotros-ia.jpg");
    background-position: center, center 46%; background-size: cover;
}

/* ---------- Tarjetas ---------- */

.grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd3ee; }
.card-media { position: relative; flex: none; overflow: hidden; background: var(--brand-soft); aspect-ratio: 16 / 10; }
.card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-link {
    margin-top: auto; font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: .35em;
}
.card-link::after { content: "→"; transition: transform .15s; }
.card-link:hover::after { transform: translateX(3px); }

.panel {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm);
}
.panel > :last-child { margin-bottom: 0; }
.about-value { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.about-value img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.about-value-copy { flex: 1; padding: 28px; }
.about-value-copy > :last-child { margin-bottom: 0; }
.about-process-layout { display: grid; gap: 24px; align-items: center; margin-bottom: 24px; }
.about-process-layout .about-process { margin-bottom: 0; }
@media (min-width: 900px) {
    .about-process-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.about-process { margin-bottom: 24px; }
@media (min-width: 720px) {
    .about-process .checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}

/* ---------- Bloques texto + imagen ---------- */

.split { display: grid; gap: 32px; align-items: center; }
.split-media img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.sicfac-desktop {
    position: relative;
    border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.sicfac-desktop img {
    display: block; width: 100%; height: auto;
    aspect-ratio: auto; object-fit: contain;
    border-radius: 0; box-shadow: none;
}
.sicfac-feature {
    position: relative;
    border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.sicfac-feature img {
    display: block; width: 100%; height: auto;
    aspect-ratio: auto; object-fit: contain;
    border-radius: 0; box-shadow: none;
}
.sicfac-devices {
    position: relative; isolation: isolate; display: flex; align-items: center;
    min-height: clamp(240px, 35vw, 440px); padding: 20px 0 28px;
}
.sicfac-devices::before {
    content: ""; position: absolute; z-index: -1; inset: 22px 0 18px;
    border-radius: 18px; background: radial-gradient(circle at 35% 35%, #e3eaff, #d0dcf5 72%, #b8c9e8);
}
.sicfac-laptop { position: relative; width: 84%; z-index: 1; }
.sicfac-laptop-screen {
    padding: 7px; border: 1px solid #354057; border-radius: 12px 12px 4px 4px;
    background: #111827; box-shadow: 0 18px 30px rgba(10, 18, 45, .24);
}
.sicfac-laptop-screen img {
    width: 100%; height: auto; aspect-ratio: 1600 / 731; object-fit: cover;
    border-radius: 4px; box-shadow: none;
}
.sicfac-laptop-base {
    width: 108%; height: 12px; margin-left: -4%; border-radius: 2px 2px 12px 12px;
    background: linear-gradient(#e6e9f1, #a3adbf 65%, #778398);
    box-shadow: 0 8px 12px rgba(10, 18, 45, .14);
}
.sicfac-phone {
    position: absolute; z-index: 2; right: 1%; bottom: 4%;
    width: 30%; max-width: 145px; aspect-ratio: 9 / 18;
    border: 6px solid #111827; border-radius: 24px; overflow: hidden;
    background: #111827; box-shadow: 0 15px 26px rgba(10, 18, 45, .3);
}
.sicfac-phone::before {
    content: ""; position: absolute; top: 5px; left: 50%; z-index: 3;
    width: 28%; height: 6px; transform: translateX(-50%);
    border-radius: 999px; background: #111827;
}
.sicfac-phone-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 17px; }
.sicfac-phone-screen img {
    width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain;
    border-radius: 0; box-shadow: none;
}
.sicfac-gallery {
    display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 20px;
    scroll-snap-type: x mandatory; scrollbar-color: var(--brand) var(--line);
}
.sicfac-shot { flex: 0 0 min(72vw, 260px); margin: 0; scroll-snap-align: start; }
.sicfac-shot button {
    display: block; width: 100%; padding: 0; border: 1px solid var(--line);
    border-radius: 18px; background: var(--white); overflow: hidden;
    box-shadow: var(--shadow-sm); cursor: zoom-in;
}
.sicfac-shot button:hover { box-shadow: var(--shadow); }
.sicfac-shot img { width: 100%; height: auto; }
.sicfac-shot figcaption { padding: 10px 4px 0; text-align: center; font-weight: 700; color: var(--ink); }
@media (min-width: 900px) {
    .sicfac-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; gap: 20px; }
    .sicfac-shot { min-width: 0; }
}
.photo-note { margin-top: 12px; color: var(--muted); font-size: .85rem; }
.about-process-layout .split-media img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: 64px; }
    .split.reverse .split-media { order: 2; }
}

.service { padding: 36px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
@media (min-width: 900px) { .service { padding: 48px 0; } }

/* ---------- Listas ---------- */

.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; }
.checklist li { position: relative; padding: 6px 0 6px 32px; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .62em;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235454c5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.steps { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
    counter-increment: paso; position: relative;
    padding: 16px 18px 16px 62px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.steps li::before {
    content: counter(paso); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand); color: var(--white); font-weight: 800; font-size: .9rem;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Galería ---------- */

.gallery { display: grid; gap: 16px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery button {
    padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.gallery button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }

.lightbox {
    border: 0; padding: 0; background: transparent;
    max-width: min(96vw, 1360px); max-height: 92vh;
}
.lightbox::backdrop { background: rgba(10, 11, 32, .86); }
.lightbox img { max-height: 92vh; width: auto; border-radius: var(--radius-sm); }
.lightbox-close {
    position: absolute; top: 10px; right: 10px;
    width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: var(--ink); color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* ---------- Franja de llamada a la acción ---------- */

.cta-band {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #e8e9fb; padding: 56px 0;
}
.cta-band .wrap { display: grid; gap: 24px; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 639px) { .cta-actions .btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
    .cta-band .wrap { grid-template-columns: 1fr auto; }
}

/* ---------- Contacto ---------- */

.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 48px; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
    flex: none; width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a { word-break: break-word; }

.map { border: 0; width: 100%; height: 300px; border-radius: var(--radius); margin-top: 28px; }

.form-row { margin-bottom: 13px; }
.form-row label { display: block; margin-bottom: 4px; font-size: .92rem; font-weight: 700; color: var(--ink); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
    width: 100%; padding: 9px 12px;
    font: inherit; line-height: 1.35; color: var(--text);
    background: var(--white); border: 1px solid #c9cde3; border-radius: var(--radius-sm);
}
@media (max-width: 639px) {
    .form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"], .form-row textarea { font-size: 16px; }
    .panel, .about-value-copy { padding: 20px; }
    .sicfac-devices { min-height: 220px; }
}
.form-row textarea { min-height: 105px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(84, 84, 197, .2); }
.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: .9rem; font-weight: 600; }
.field-error:empty { display: none; }
.form-row.has-error input,
.form-row.has-error textarea { border-color: var(--danger); background: #fffafa; }
.form-row.has-error input:focus,
.form-row.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }

/* Campo trampa para bots: fuera de pantalla, no visible ni enfocable */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.contact-submit { min-height: 44px; padding: .55em 1.25em; border-radius: var(--radius-sm); }
.contact-submit.is-busy::before {
    content: ""; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: var(--white); border-radius: 50%; animation: contact-spin .7s linear infinite;
}
@keyframes contact-spin { to { transform: rotate(360deg); } }
.contact-dialog {
    width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px);
    margin: auto; padding: 28px 26px; overflow: auto;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); color: var(--text); text-align: center;
    box-shadow: 0 24px 70px rgba(20, 22, 58, .24);
}
.contact-dialog::backdrop { background: rgba(20, 22, 58, .58); }
.contact-dialog-icon {
    display: grid; place-items: center; width: 56px; height: 56px;
    margin: 0 auto 16px; border-radius: 50%; color: var(--white);
    background: var(--brand);
}
.contact-dialog-icon::before { content: "…"; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.contact-dialog.is-ok .contact-dialog-icon { background: var(--ok); }
.contact-dialog.is-ok .contact-dialog-icon::before { content: "✓"; }
.contact-dialog.is-error .contact-dialog-icon { background: var(--danger); }
.contact-dialog.is-error .contact-dialog-icon::before { content: "!"; }
.contact-dialog h2 { margin: 0 0 8px; font-size: 1.4rem; }
.contact-dialog p { margin: 0 0 22px; line-height: 1.5; }
.contact-dialog-action { min-height: 42px; padding: .55em 1.4em; border-radius: var(--radius-sm); }
.contact-dialog.is-info .contact-dialog-action { display: none; }
@media (prefers-reduced-motion: reduce) { .contact-submit.is-busy::before { animation: none; } }
.btn:disabled { opacity: .6; cursor: wait; }
.contact-submit:disabled { opacity: 1; }

/* ---------- Pie ---------- */

.site-footer { background: var(--ink); color: #b9bcd8; padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: #dfe1f5; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid h2 {
    color: var(--white); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-identity { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.footer-identity .brand-name { color: var(--white); }
.footer-identity .brand-tagline { color: #b9bcd8; }
.footer-brand p { max-width: 30em; }
.footer-bottom {
    margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .88rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* ---------- Botón flotante de WhatsApp ---------- */

.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25d366; color: var(--white); box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
    transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); color: var(--white); }
.wa-float svg { width: 30px; height: 30px; }

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

@media print {
    .site-header, .wa-float, .cta-band, .nav-toggle { display: none; }
}
