/* Custom Landing Page Styles extracted from guia-autoconsumo-solar-malaga.php */
:root {
    --green: #00884a;
    --green-2: #40A900;
    --text: #1b1f23;
    --muted: #5b6b73;
    --bg: #ffffff;
    --bg-soft: #f5f7f8;
}

* {
    box-sizing: border-box
}

/* Override standard styles if needed for this specific landing layout */
/* Note: header/footer styles come from includes */

body {
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--green)
}

/* Helper Classes */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px
}

.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

/* Custom Buttons for this page */
.btn-landing {
    appearance: none;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-landing-primary {
    background: var(--green);
    color: #fff
}

.btn-landing-ghost {
    background: #fff;
    color: var(--green);
    border: 1px solid var(--green)
}

.btn-landing-white {
    background: #fff;
    color: var(--text);
    border: 1px solid #d9e1e4
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    padding: 36px 0 20px;
    color: var(--text);
    background: transparent;
    /* Ensure it doesn't pick up dark bg */
}

/* Force dark text for this specific landing layout, overriding global .hero styles */
.hero h1 {
    color: var(--text) !important;
    text-shadow: none !important;
    /* Remove shadow meant for dark bg */
}

.hero p,
.hero .lead {
    color: var(--muted) !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--green);
    border-radius: 999px;
    font-weight: 600;
    color: var(--green);
    background: #000
}

h1 {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.15;
    margin: 14px 0
}

.lead {
    font-size: clamp(16px, 1.4vw, 20px);
    color: var(--muted);
    margin: 10px 0 18px
}

.hero img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08)
}

.section {
    padding: 40px 0
}

.section.soft {
    background: var(--bg-soft)
}

h2 {
    font-size: clamp(22px, 2.4vw, 32px);
    margin: 0 0 16px
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.card {
    background: #fff;
    border: 1px solid #e9eef0;
    border-radius: 16px;
    padding: 18px
}

.card h3 {
    margin: 8px 0 6px;
    font-size: 18px;
    color: var(--green)
}

.list {
    display: grid;
    gap: 8px;
    padding-left: 18px
}

.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.kpi {
    background: #fff;
    border: 1px solid #e9eef0;
    border-radius: 14px;
    padding: 16px;
    text-align: center
}

.kpi .v {
    font-size: 26px;
    color: var(--green);
    font-weight: 800
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.step {
    background: #fff;
    border: 1px solid #e9eef0;
    border-radius: 14px;
    padding: 14px
}

.step .n {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px
}

details {
    background: #fff;
    border: 1px solid #e9eef0;
    border-radius: 12px;
    padding: 10px 14px
}

details+details {
    margin-top: 10px
}

summary {
    cursor: pointer;
    font-weight: 700;
    color: #0e1111
}

.mini {
    font-size: 13px;
    color: #93a1a7
}

/* Sección guía IDAE */
.idae-embed {
    border: 1px solid #e9eef0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff
}

.idae-embed iframe {
    width: 100%;
    height: 600px;
    border: 0
}

.idae-fallback {
    padding: 16px;
    text-align: center
}

/* Bloque "acreditación IDAE" */
.idae-card {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 22px;
    align-items: start
}

.idae-card .card {
    height: 100%
}

.idae-links {
    display: grid;
    gap: 10px;
    margin-top: 10px
}

.idae-links a {
    display: block;
    padding: 10px 12px;
    border: 1px solid #e1e7ea;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
}

.idae-links a:hover {
    background-color: #f8f9fa;
}

.idae-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e9eef0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05)
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px
}

@media (max-width:920px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr
    }

    .kpis {
        grid-template-columns: 1fr 1fr
    }

    .steps {
        grid-template-columns: 1fr 1fr
    }

    .idae-card {
        grid-template-columns: 1fr
    }

    .idae-embed iframe {
        height: 520px
    }
}

@media (max-width:520px) {
    .grid-3 {
        grid-template-columns: 1fr
    }

    .kpis {
        grid-template-columns: 1fr 1fr
    }

    .steps {
        grid-template-columns: 1fr
    }

    .idae-embed iframe {
        height: 460px
    }
}

/* Formulario + reseñas al final (gris plata legible) */
.leadform {
    padding: 24px;
    background: #e5e8eb;
    border: 1px solid #cfd6dc;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
    margin: 10px 0 24px
}

.leadform h2 {
    color: #0e1111
}

.leadform .mini {
    color: #4f5b62
}