/* =====================================================================
   Landing principal (reservas.doscar.com) — estilos propios.
   Se carga solo en layouts/marketing.php, después de style.css, y
   reutiliza sus variables (--accent, --text, --soft-*, ...).
   ===================================================================== */

/* ---------- HERO ---------- */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 88px;
}
.lp-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 56px;
}
.lp-hero-copy h1 {
    font-size: 58px;
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 800;
    margin: 0 0 22px;
}
.lp-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-2);
    max-width: 540px;
    margin: 0 0 30px;
}
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.lp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 13px;
    color: var(--muted);
}
.lp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-trust .ic { color: var(--success-fg); }

.lp-hero-visual { position: relative; padding: 24px 0 24px 24px; }
.lp-hero-photo {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 3.4;
    box-shadow: 0 40px 80px -30px rgba(43, 91, 215, .45), 0 18px 40px -20px rgba(11, 18, 32, .35);
    transform: rotate(1.2deg);
}
.lp-hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.lp-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; display: block; }

/* Tarjetas flotantes sobre la foto */
.lp-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 232, 239, .9);
    border-radius: 16px;
    box-shadow: 0 18px 40px -18px rgba(11, 18, 32, .35);
    font-size: 13px;
    animation: lp-bob 6s ease-in-out infinite;
}
.lp-float strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); }
.lp-float span { color: var(--muted); }
.lp-float-icon {
    width: 36px; height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lp-float-icon.tone-green { background: var(--soft-green-bg); color: var(--soft-green-fg); }
.lp-float-icon.tone-blue  { background: var(--soft-blue-bg);  color: var(--soft-blue-fg); }
.lp-float-booking { top: 6px; left: -18px; }
.lp-float-mail    { bottom: 2px; right: -10px; animation-delay: -3s; }
.lp-float-slots {
    display: block;
    bottom: 64px;
    left: -36px;
    width: 238px;
    animation-delay: -1.5s;
}
.lp-float-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--text-2);
    margin-bottom: 10px;
}
.lp-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lp-slots span {
    text-align: center;
    padding: 6px 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    background: #fff;
}
.lp-slots span.is-taken { color: var(--muted-2); text-decoration: line-through; background: var(--surface-2); }
.lp-slots span.is-selected {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
@keyframes lp-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .lp-float { animation: none; }
}

/* ---------- CIFRAS ---------- */
.lp-stats { padding: 0 0 24px; position: relative; z-index: 2; }
.lp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 50px -30px rgba(11, 18, 32, .25);
}
.lp-stats-grid > div {
    padding: 26px 24px;
    border-left: 1px solid var(--border);
}
.lp-stats-grid > div:first-child { border-left: 0; }
.lp-stats-grid strong {
    display: block;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lp-stats-grid span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- FEATURES (reutiliza .mkt-feature) ---------- */
.lp-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* ---------- SPLIT: experiencia del cliente ---------- */
.lp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.lp-split-media {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 30px 60px -30px rgba(11, 18, 32, .4);
}
.lp-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-split-copy h2 {
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -.025em;
    margin: 0 0 16px;
}
.lp-split-copy > p { color: var(--text-2); font-size: 16.5px; line-height: 1.6; margin: 0 0 22px; }
.lp-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-2);
}
.lp-checklist .ic {
    flex: 0 0 24px;
    width: 24px; height: 24px;
    padding: 4px;
    border-radius: 50%;
    background: var(--soft-green-bg);
    color: var(--soft-green-fg);
}

/* ---------- PASOS ---------- */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    counter-reset: lp-step;
    position: relative;
}
.lp-steps::before {
    content: '';
    position: absolute;
    top: 52px; left: 16%; right: 16%;
    border-top: 2px dashed var(--border-strong);
    z-index: 0;
}
.lp-step {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 26px 28px;
    box-shadow: 0 14px 34px -24px rgba(11, 18, 32, .3);
}
.lp-step-num {
    position: absolute;
    top: 14px; right: 16px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--bg-2);
}
.lp-step-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px -8px rgba(43, 91, 215, .6);
}
.lp-step h3 { margin: 0 0 8px; font-size: 18px; }
.lp-step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lp-step code {
    font-size: 12.5px;
    background: var(--soft-blue-bg);
    color: var(--soft-blue-fg);
    padding: 2px 6px;
    border-radius: 6px;
}

/* ---------- SECTORES ---------- */
.lp-sectors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}
.lp-sector {
    position: relative;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--bg-2);
    box-shadow: 0 18px 40px -26px rgba(11, 18, 32, .45);
}
.lp-sector img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.lp-sector:hover img { transform: scale(1.05); }
.lp-sector figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 60px 18px 18px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(11, 18, 32, .82));
}
.lp-sector figcaption strong { display: block; font-size: 17px; margin-bottom: 2px; }
.lp-sector figcaption span { font-size: 13px; color: rgba(255, 255, 255, .8); }

.lp-cases { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-case {
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: border-color .15s, color .15s;
}
.lp-case:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- FAQ ---------- */
.lp-faq { display: grid; gap: 12px; }
.lp-faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 22px;
    transition: border-color .15s, box-shadow .15s;
}
.lp-faq details[open] { border-color: var(--border-strong); box-shadow: 0 12px 30px -22px rgba(11, 18, 32, .35); }
.lp-faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-weight: 600;
    font-size: 15.5px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .ic { flex: 0 0 auto; color: var(--muted); transition: transform .2s; }
.lp-faq details[open] summary .ic { transform: rotate(180deg); }
.lp-faq details p { margin: 0 0 18px; color: var(--text-2); line-height: 1.6; font-size: 15px; }

/* ---------- CTA FINAL ---------- */
.lp-cta-box {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
    border-radius: 28px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 65%, #d94a94 120%);
    box-shadow: 0 30px 70px -30px rgba(109, 51, 201, .6);
}
.lp-cta-copy { padding: 56px 52px; }
.lp-cta-copy h2 { color: #fff; font-size: 36px; letter-spacing: -.025em; line-height: 1.1; margin: 0 0 12px; }
.lp-cta-copy p { color: rgba(255, 255, 255, .85); font-size: 17px; margin: 0 0 26px; }
.lp-btn-light { background: #fff; color: var(--text); border-color: #fff; }
.lp-btn-light:hover { background: #f1f3f9; color: var(--text); border-color: #f1f3f9; }
.lp-cta-media { position: relative; min-height: 260px; }
.lp-cta-media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
    mask-image: linear-gradient(90deg, transparent, #000 35%);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
    .lp-hero-copy h1 { font-size: 48px; }
    .lp-features, .lp-sectors { grid-template-columns: repeat(2, 1fr); }
    .lp-sector { aspect-ratio: 4 / 3; }
}
@media (max-width: 900px) {
    .lp-hero { padding: 48px 0 64px; }
    .lp-hero-grid, .lp-split, .lp-cta-box { grid-template-columns: 1fr; gap: 40px; }
    .lp-hero-copy { text-align: center; }
    .lp-lead { margin-left: auto; margin-right: auto; }
    .lp-cta-row, .lp-trust { justify-content: center; }
    .lp-hero-visual { padding: 16px 8px; max-width: 560px; margin: 0 auto; width: 100%; }
    .lp-float-booking { left: 0; }
    .lp-float-slots { left: -4px; }
    .lp-float-mail { right: 0; }
    .lp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-stats-grid > div:nth-child(3) { border-left: 0; }
    .lp-stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-steps::before { display: none; }
    .lp-cta-copy { padding: 40px 28px; text-align: center; }
    .lp-cta-media { min-height: 200px; }
    .lp-cta-media img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
}
@media (max-width: 560px) {
    .lp-hero-copy h1 { font-size: 36px; }
    .lp-lead { font-size: 16px; }
    .lp-features, .lp-sectors { grid-template-columns: 1fr; }
    .lp-split-copy h2, .lp-cta-copy h2 { font-size: 28px; }
    .lp-float-slots { display: none; }
    .lp-float { padding: 10px 12px; }
    .lp-float-booking { top: -4px; }
    .lp-hero-photo { transform: none; }
}

/* ---------- FOOTER ---------- */
.marketing-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.marketing-footer-links a { color: var(--muted); font-size: 14px; }
.marketing-footer-links a:hover { color: var(--accent); text-decoration: none; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 110px; }
