/* =========================================================
   EFECINCO — estilos
   Colores tomados del logo: naranja F5 y azul EFECINCO
   ========================================================= */
:root {
    --orange: #F26A0F;
    --orange-dark: #D45806;
    --blue: #1D5FE3;
    --blue-dark: #1449B5;
    --blue-deep: #0D2C6E;
    --ink: #14213D;
    --muted: #5B6680;
    --bg: #FFFFFF;
    --bg-soft: #F4F7FD;
    --line: #E3E9F5;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(13, 44, 110, .10);
    --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Montserrat", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font-weight: 700; border-radius: 999px; padding: .8em 1.5em;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .55em 1.15em; font-size: .95rem; }
.btn--lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 106, 15, .35); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--white { background: #fff; color: var(--orange); }
.btn--white:hover { box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ---------- Etiquetas ---------- */
.tag {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; padding: .35em .9em; border-radius: 999px;
    background: rgba(242, 106, 15, .12); color: var(--orange-dark); margin-bottom: 1rem;
}
.tag--blue { background: rgba(29, 95, 227, .10); color: var(--blue); }
.tag--white { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Marca (logo en texto) ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark {
    font-family: var(--font-display); font-weight: 900; font-size: 2rem;
    color: var(--orange); font-style: italic; letter-spacing: -.04em; line-height: 1;
}
.brand__name {
    font-family: var(--font-display); font-weight: 900; font-size: .95rem;
    color: var(--blue); line-height: .95; letter-spacing: .02em;
}
.brand--light .brand__name { color: #fff; }

/* ---------- Encabezado ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(13,44,110,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { font-weight: 500; color: var(--muted); position: relative; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
    background: var(--orange); transition: width .2s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: transparent;
    flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 3px; background: var(--blue); border-radius: 3px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(29,95,227,.10), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(242,106,15,.10), transparent 40%),
        var(--bg-soft);
    padding: 80px 0 90px;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; color: var(--blue-deep); letter-spacing: -.02em; }
.hl { color: var(--orange); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 30px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 500; }
.hero__badges i { color: var(--blue); margin-right: 6px; }

.hero__art { position: relative; height: 380px; display: grid; place-items: center; }
.f5-key {
    position: relative; z-index: 2;
    width: 230px; height: 230px; border-radius: 42px;
    background: linear-gradient(160deg, #fff 0%, #EEF3FD 100%);
    box-shadow: 0 18px 0 #D4DEF3, 0 30px 60px rgba(13,44,110,.20);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    animation: press 3.2s ease-in-out infinite;
}
.f5-key__label { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 6rem; color: var(--orange); line-height: 1; letter-spacing: -.05em; }
.f5-key__icon { color: var(--blue); font-size: 1.8rem; margin-top: 8px; }
@keyframes press {
    0%, 70%, 100% { transform: translateY(0); box-shadow: 0 18px 0 #D4DEF3, 0 30px 60px rgba(13,44,110,.20); }
    80% { transform: translateY(12px); box-shadow: 0 6px 0 #D4DEF3, 0 18px 40px rgba(13,44,110,.18); }
}
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob--blue { width: 260px; height: 260px; background: var(--blue); opacity: .9; top: 20px; right: 10px; }
.blob--orange { width: 140px; height: 140px; background: var(--orange); bottom: 20px; left: 30px; }

/* ---------- Secciones ---------- */
.section { padding: 90px 0; }
.section--blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; color: var(--blue-deep); }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section__head--light h2 { color: #fff; }

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Tarjetas de categoría */
.card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    background: rgba(29,95,227,.10); color: var(--blue); font-size: 1.5rem; margin-bottom: 18px;
}
.card__icon--orange { background: rgba(242,106,15,.12); color: var(--orange); }
.card h3 { font-size: 1.2rem; color: var(--blue-deep); }
.card p { color: var(--muted); flex: 1; }
.card__link { font-weight: 700; color: var(--orange); }
.card__link i { transition: transform .2s; }
.card:hover .card__link i { transform: translateX(4px); }

/* Beneficios */
.benefit {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius); padding: 28px;
}
.benefit > i, .benefit > svg { font-size: 1.8rem; color: var(--orange); margin-bottom: 14px; }
.benefit h3 { font-size: 1.15rem; }
.benefit p { color: rgba(255,255,255,.80); margin: 0; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { position: relative; text-align: center; padding: 32px 24px; background: var(--bg-soft); border-radius: var(--radius); }
.step__num {
    display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.4rem;
    margin-bottom: 16px; box-shadow: 0 8px 18px rgba(242,106,15,.35);
}
.step h3 { color: var(--blue-deep); font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }

/* Servicio técnico */
.section--soft { background: var(--bg-soft); }
.service { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.service__text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; color: var(--blue-deep); }
.service__text p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.6rem; }
.service__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service__list li {
    display: flex; gap: 14px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.service__icon {
    flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(242,106,15,.12); color: var(--orange); font-size: 1.2rem;
}
.service__list h3 { font-size: 1.05rem; color: var(--blue-deep); margin-bottom: .25em; }
.service__list p { color: var(--muted); margin: 0; font-size: .95rem; }

/* CTA */
.cta__social { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__map { margin-top: 18px; }
.cta { background: var(--orange); color: #fff; padding: 56px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: .25em; }
.cta p { margin: 0; opacity: .95; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-deep); color: rgba(255,255,255,.80); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__about { margin-top: 16px; max-width: 320px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__list i { color: var(--orange); width: 18px; margin-right: 6px; }
.footer__list a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.10); color: #fff; font-size: 1.2rem; transition: background .2s;
}
.footer__social a:hover { background: var(--orange); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .9rem; text-align: center; }

/* WhatsApp flotante */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: #25D366; color: #fff; font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37,211,102,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav {
        position: fixed; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(13,44,110,.10);
        padding: 8px 20px 20px;
        transform: translateY(-120%); visibility: hidden;
        transition: transform .3s ease, visibility .3s;
    }
    .nav.is-open { transform: none; visibility: visible; }
    .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav a:not(.btn)::after { display: none; }
    .nav .btn { margin-top: 16px; }

    .hero { padding: 48px 0 64px; }
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .lead { margin-left: auto; margin-right: auto; }
    .hero__cta, .hero__badges { justify-content: center; }
    .hero__art { height: 280px; order: -1; }
    .f5-key { width: 170px; height: 170px; border-radius: 32px; }
    .f5-key__label { font-size: 4.4rem; }
    .blob--blue { width: 190px; height: 190px; right: 12%; top: 10px; }
    .blob--orange { width: 100px; height: 100px; left: 14%; bottom: 10px; }

    .section { padding: 64px 0; }
    .steps { grid-template-columns: 1fr; }
    .service { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .service__list { text-align: left; }
    .cta__inner { flex-direction: column; text-align: center; }
    .cta__social { justify-content: center; }
    .footer__grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer__about { margin-left: auto; margin-right: auto; }
    .footer__social { justify-content: center; }
}

@media (max-width: 520px) {
    .grid--4 { grid-template-columns: 1fr; }
    .hero__cta .btn { width: 100%; }
    .cta .btn { width: 100%; }
    .service__list { grid-template-columns: 1fr; }
    .service__text .btn { width: 100%; }
}

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