/* Wallacars shared styles */
:root {
    --primary: #0a66e0;
    --primary-dark: #0850b3;
    --accent: #f5a524;
    --bg-soft: #f4f7fb;
    --text: #1a1a1a;
    --muted: #5b6470;
    --line: #e5e9ef;
    --wa: #25D366;
    --wa-dark: #1eb956;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #fff;
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--primary); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding-top: 10px; padding-bottom: 10px;
}
.site-header img { display: block; height: 44px; width: auto; }
.header-links { display: flex; gap: 8px; align-items: center; }
.header-links a {
    font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text);
    padding: 8px 12px; border-radius: 8px;
}
.header-links a:hover { background: var(--bg-soft); }
.header-links .wa-mini { background: var(--wa); color: #fff; }
.header-links .wa-mini:hover { background: var(--wa-dark); }

/* Hero (compact so the search is visible on the first screen) */
.hero { text-align: center; padding: 22px 0 12px; }
.hero h1 { font-size: 32px; line-height: 1.2; margin: 0 0 6px; }
.hero .sub { font-size: 17px; color: var(--muted); margin: 0 auto; max-width: 680px; }

/* Search engine */
.search-wrapper {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 1px solid var(--line);
    margin: 14px 0 8px;
}
.search-wrapper iframe {
    display: block; width: 100%; border: 0;
    height: 820px; /* tall enough for results and checkout steps */
}
.fallback-link { text-align: center; font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* Trust strip */
.trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
    list-style: none; padding: 0; margin: 14px 0 0;
}
.trust li {
    display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
    color: var(--primary-dark); background: #eef5ff; padding: 6px 14px; border-radius: 50px;
}
.trust li::before { content: "✓"; }

/* Action bar */
.action-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; }
.btn {
    display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600;
    text-decoration: none; font-size: 15px; transition: background .2s ease;
}
.btn.secondary { background: #f0f2f5; color: var(--text); border: 1px solid #dcdfe4; }
.btn.secondary:hover { background: #e4e6e9; }
.btn.whatsapp { background: var(--wa); color: #fff; }
.btn.whatsapp:hover { background: var(--wa-dark); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }

/* Sections */
section.block { margin: 56px auto 0; }
section.block h2 { text-align: center; font-size: 26px; margin: 0 0 18px; line-height: 1.25; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--bg-soft); border-radius: 14px; padding: 20px; }
.step .num {
    display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center;
    justify-content: center; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 8px;
}
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary {
    cursor: pointer; font-weight: 700; padding: 16px 44px 16px 18px; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--primary); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: #333; }

/* Content pages */
.page { max-width: 780px; margin: 0 auto; padding: 30px 16px 0; }
.page h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
.page h2 { font-size: 22px; margin: 32px 0 8px; }
.page p, .page li { color: #333; }
.note {
    background: #fff8e6; border: 1px solid #f3dca2; border-radius: 10px; padding: 12px 16px; font-size: 14px;
}
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.fact { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; }
.fact strong { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.fact span { font-size: 18px; font-weight: 700; }

/* Footer */
footer {
    margin-top: 70px; padding: 32px 16px 90px; text-align: center; color: #888;
    font-size: 14px; border-top: 1px solid var(--line);
}
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
footer nav a { text-decoration: none; font-weight: 600; }

/* Floating WhatsApp (mobile) */
.wa-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 50; display: none;
    background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
    padding: 12px 18px; border-radius: 50px; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* Cookie banner */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto;
    background: #1a1a1a; color: #fff; border-radius: 14px; padding: 16px 18px; font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3); display: none;
}
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner a { color: #9cc7ff; }
.cookie-banner .row { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-banner button {
    font: inherit; font-weight: 700; border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer;
}
.cookie-banner .accept { background: #fff; color: #1a1a1a; }
.cookie-banner .decline { background: transparent; color: #fff; border: 1px solid #666; }

@media (max-width: 700px) {
    .site-header img { height: 34px; }
    .header-links .hide-sm { display: none; }
    .hero { padding: 14px 0 6px; }
    .hero h1 { font-size: 24px; }
    .hero .sub { font-size: 15px; }
    .search-wrapper { margin-top: 10px; border-radius: 12px; }
    .search-wrapper iframe { height: 90vh; min-height: 640px; }
    .trust li { font-size: 13px; padding: 5px 12px; }
    .steps { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr; }
    .wa-float { display: inline-block; }
    .page h1 { font-size: 26px; }
}

/* Trust strip sits just above the search box */
.hero + .trust { margin-top: 4px; }
@media (max-width: 700px) {
    .hero + .trust { gap: 6px; }
    .hero + .trust li { font-size: 12px; padding: 4px 10px; }
    .cookie-banner { padding: 12px 14px; font-size: 13px; left: 10px; right: 10px; bottom: 10px; }
    .cookie-banner p { margin-bottom: 8px; }
}
