/* ═══════════════════════════════════════════
   Elymar Ventanas - Landing Ads (lead-gen)
   Basado en el design system de grupo.elymar.es
   ═══════════════════════════════════════════ */

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

:root {
    --color-primary: #FE5000;
    --color-primary-dark: #e04a00;
    --color-green: #25D366;
    --color-green-dark: #1fb457;
    --color-dark: #111;
    --color-gray: #666;
    --color-light-gray: #f7f7f7;
    --color-white: #fff;
    --max-width: 1200px;
    --section-padding: 4.5rem 2rem;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ── Header fijo ligero ─────────────────────────── */
.lp-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(17,17,17,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.lp-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: .55rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.lp-header-logo img { height: 38px; width: auto; display: block; }
.lp-header-right { display: flex; align-items: center; gap: .8rem; }
.lp-header-phone {
    display: inline-flex; align-items: center; gap: .45rem;
    color: #fff; font-weight: 700; font-size: .95rem;
    white-space: nowrap;
}
.lp-header-phone svg { width: 17px; height: 17px; stroke: var(--color-primary); }
@media (max-width: 520px) { .lp-header-phone span { display: none; } }

/* ── Hero estático (imagen, sin vídeo) ──────────── */
.lp-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #111;
    padding: 7rem 1.5rem 4.5rem;
    overflow: hidden;
}
/* capas de fondo del hero: img + video carrusel */
.lp-hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
    z-index: 0;
}
.lp-hero-bg.is-active { opacity: 1; visibility: visible; }
.lp-hero-img { animation: lp-kenburns 26s ease-in-out infinite alternate; }
@keyframes lp-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .lp-hero-img { animation: none; }
    .lp-hero-video { display: none; }
    .lp-hero-bg:first-of-type { opacity: 1; visibility: visible; }
}
/* vídeo del equipo instalando (encima del poster, debajo del overlay) */
.lp-hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
    .lp-hero-video { display: none; }
}
.lp-hero::before {
    content: "";
    position: absolute; inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.55) 50%, rgba(0,0,0,.78));
}
.lp-hero-content { position: relative; z-index: 2; color: #fff; max-width: 860px; margin: 0 auto; }
.lp-hero-eyebrow {
    font-size: .8rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: #FE5000; margin-bottom: .9rem;
}
.lp-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
}
.lp-hero h1 .lp-hero-orange { color: #FE5000; }
.lp-hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.88);
    margin: 1.1rem auto 0;
    max-width: 640px;
    line-height: 1.55;
}
.lp-hero-proof {
    display: flex; align-items: center; justify-content: center; gap: 1.1rem;
    flex-wrap: wrap; margin-top: 1.2rem;
    font-size: .92rem; color: rgba(255,255,255,.85);
}
.lp-proof-link {
    display: inline-flex; align-items: center; gap: .5rem;
    color: inherit;
    border-bottom: 1px dotted rgba(255,255,255,.4);
    transition: color .2s, border-color .2s;
}
.lp-proof-link:hover { color: #fff; border-bottom-color: #FE5000; }
.lp-hero-proof .g-mark { font-size: 1.25rem; font-weight: 800; color: #4285F4; }
.lp-hero-proof .review-stars { color: #f4b400; letter-spacing: 2px; font-size: 1.05rem; }
.lp-hero-cta {
    display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap;
    margin-top: 1.7rem;
}
.lp-btn-primary, .lp-btn-green, .lp-btn-white {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    font-weight: 700; font-size: 1.02rem; line-height: 1;
    padding: 1rem 2rem; border-radius: 44px;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.lp-btn-green {
    background: var(--color-green); color: #fff;
    box-shadow: 0 12px 30px rgba(37,211,102,.28);
}
.lp-btn-green svg { width: 22px; height: 22px; fill: #fff; flex: 0 0 auto; }
.lp-btn-green:hover { transform: translateY(-2px); background: var(--color-green-dark); }
.lp-btn-white {
    background: #fff; color: #111;
}
.lp-btn-white svg { width: 19px; height: 19px; stroke: var(--color-primary); flex: 0 0 auto; }
.lp-btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
@media (max-width: 560px) {
    .lp-btn-primary, .lp-btn-green, .lp-btn-white { width: 100%; }
}
.lp-hero-note { margin-top: .9rem; font-size: .85rem; color: rgba(255,255,255,.65); }

/* ── Sección genérica ──────────────────────────── */
.lp-section { padding: var(--section-padding); }
.lp-section--alt { background: var(--color-light-gray); }
.lp-section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center; margin-bottom: .5rem;
}
.lp-section-sub {
    text-align: center; color: var(--color-gray);
    font-size: 1.08rem; margin-bottom: 2.75rem;
}

/* ── Ventajas (grid 2x2) ───────────────────────── */
.lp-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.lp-benefit {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 14px;
    padding: 1.4rem 1.35rem;
}
.lp-benefit-icon {
    font-size: 1.7rem; line-height: 1; margin-bottom: .7rem;
    color: var(--color-primary);
}
.lp-benefit h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.lp-benefit p { font-size: .88rem; color: var(--color-gray); line-height: 1.55; }
@media (max-width: 900px) { .lp-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-benefits { grid-template-columns: 1fr; } }

/* ── Proceso (4 pasos) ─────────────────────────── */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-top: 2.5rem;
}
.lp-step {
    background: #111;
    color: #fff;
    border-radius: 14px;
    padding: 1.4rem 1.3rem;
    position: relative;
    overflow: hidden;
}
.lp-step::after {
    content: "";
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: var(--color-primary);
}
.lp-step-n {
    display: block;
    font-size: 1.8rem; font-weight: 800; color: var(--color-primary);
    line-height: 1; margin-bottom: .7rem;
}
.lp-step strong { display: block; font-size: 1rem; margin-bottom: .3rem; }
.lp-step p { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.5; }
@media (max-width: 900px) { .lp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-steps { grid-template-columns: 1fr; } }

/* ── Reviews Google ────────────────────────────── */
.lp-reviews { display: grid; gap: 1rem; margin-top: 0; }
.lp-reviews-badge {
    display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
    background: #fff; border: 1px solid #e3e6ea; border-radius: 12px;
    padding: .9rem 1.2rem; justify-content: center;
}
.lp-reviews .g-mark { font-size: 1.5rem; font-weight: 800; color: #4285F4; }
.lp-reviews .review-stars { color: #f4b400; letter-spacing: 2px; font-size: 1.05rem; }
.lp-reviews .badge-score { font-weight: 800; color: #111; font-size: 1.05rem; }
.lp-reviews .badge-count { color: #555; font-size: .95rem; }
.lp-reviews-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lp-review-card {
    background: #fff; border: 1px solid #e3e6ea; border-radius: 12px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.lp-review-name { font-weight: 700; color: #111; font-size: .98rem; margin-bottom: .35rem; }
.lp-review-card .review-stars { font-size: .95rem; }
.lp-review-card .review-text { color: #333; font-size: .95rem; line-height: 1.6; margin: 0; font-style: italic; }
@media (max-width: 760px) { .lp-reviews-cards { grid-template-columns: 1fr; } }

/* ── Formulario ────────────────────────────────── */
.lp-form-wrap { max-width: 640px; margin: 0 auto; }
.lp-form {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 16px;
    padding: 2.2rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.07);
    display: flex; flex-direction: column; gap: 1.1rem;
}
.lp-form label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9rem; }
.lp-form input, .lp-form textarea, .lp-form select {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: .98rem;
    transition: border-color .2s, box-shadow .2s;
}
.lp-form input:focus, .lp-form textarea:focus, .lp-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(254,80,0,.15);
}
.lp-form textarea { resize: vertical; min-height: 90px; }
.lp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .lp-form-row { grid-template-columns: 1fr; } }
.lp-btn-submit {
    background: var(--color-primary); color: #fff; font-weight: 700;
    font-size: 1.05rem; padding: 1rem 2rem; border-radius: 44px; border: none;
    cursor: pointer; transition: background .2s, transform .2s;
}
.lp-btn-submit:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.lp-form-alt { text-align: center; font-size: .9rem; color: var(--color-gray); margin-top: .35rem; }
.lp-form-alt a { color: var(--color-primary); font-weight: 700; }
.lp-form-alt a:hover { text-decoration: underline; }

/* ── FAQ ───────────────────────────────────────── */
.lp-faq { max-width: 800px; margin: 0 auto; display: grid; gap: .75rem; }
.lp-faq details {
    background: #fff; border: 1px solid #e3e6ea; border-radius: 10px;
    padding: 1.05rem 1.3rem;
}
.lp-faq summary { font-weight: 700; cursor: pointer; font-size: 1rem; }
.lp-faq details p { margin-top: .6rem; color: var(--color-gray); font-size: .95rem; }

/* ── Footer ────────────────────────────────────── */
.lp-footer {
    background: #111; color: #999;
    padding: 2.2rem 1.5rem 1.6rem;
    text-align: center;
    font-size: .85rem;
}
.lp-footer img { height: 34px; width: auto; margin: 0 auto .8rem; opacity: .9; }
.lp-footer a { color: #ccc; }
.lp-footer a:hover { color: var(--color-primary); }
.lp-footer-legal { margin-top: .8rem; display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
