/*
Theme Name: EV ElectroHome
Theme URI: https://electrohome-ev.local
Author: EV ElectroHome
Description: Tema para instalacion de cargadores EV y paneles solares domiciliarios.
Version: 0.1.5
Text Domain: electrohome-ev
*/

:root {
    --ink: #162026;
    --muted: #5c6972;
    --line: #dde5e8;
    --paper: #ffffff;
    --soft: #f4f7f8;
    --blue: #1167d8;
    --green: #1f9d66;
    --amber: #f3a712;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.site-header__inner,
.section__inner,
.site-footer__inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 230px;
    font-weight: 800;
}

.brand__logo {
    width: 100%;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 0.96rem;
}

.button,
.wp-block-button__link,
.single_add_to_cart_button,
.checkout-button,
.woocommerce button.button,
.woocommerce a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: #fff;
    background: var(--blue);
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.button--light {
    color: var(--ink);
    background: #fff;
}

.button--ghost {
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.hero {
    min-height: calc(100vh - 128px);
    display: grid;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(8, 18, 24, 0.94) 0%, rgba(8, 18, 24, 0.78) 44%, rgba(8, 18, 24, 0.24) 100%),
        var(--hero-image) center/cover no-repeat;
}

.hero__content {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 96px;
}

.hero__copy {
    max-width: 650px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #bdebd4;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.36);
}

.hero p {
    max-width: 580px;
    margin: 22px 0 0;
    color: #fff;
    font-size: 1.16rem;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.42);
}

.promo-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    background: rgba(5, 13, 18, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    font-weight: 800;
}

.promo-price del,
.quote-panel del,
.electrohome-promo-price del {
    color: rgba(255, 255, 255, 0.72);
    text-decoration-thickness: 2px;
}

.promo-price strong {
    color: #6ee7ad;
    text-transform: uppercase;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero .button--ghost {
    color: #fff;
    background: rgba(5, 13, 18, 0.34);
    border-color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.38);
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 660px;
    margin-top: 42px;
}

.hero__fact {
    padding: 16px;
    background: rgba(5, 13, 18, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    backdrop-filter: blur(6px);
}

.hero__fact strong {
    display: block;
    font-size: 1.36rem;
}

.hero__fact span {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.92rem;
}

.section {
    padding: 84px 0;
}

.section--soft {
    background: var(--soft);
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.section__head h2 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.section__head p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.service-card,
.step,
.check-item,
.quote-panel,
.electrohome-agenda {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.service-card {
    min-height: 280px;
    padding: 28px;
}

.service-card--primary {
    background: #0f2734;
    color: #fff;
}

.service-card__tag {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 10px;
    color: var(--ink);
    background: #e8f6ef;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
}

.service-card--primary .service-card__tag {
    color: #fff;
    background: rgba(31, 157, 102, 0.3);
}

.service-card h3 {
    margin: 0;
    font-size: 1.7rem;
}

.service-card p {
    color: inherit;
    opacity: 0.82;
}

.service-card ul {
    margin: 22px 0 0;
    padding-left: 18px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.check-item {
    padding: 24px;
    border-top: 4px solid var(--amber);
}

.check-item h3 {
    margin: 0 0 10px;
    font-size: 1.16rem;
}

.check-item p {
    margin: 0;
    color: var(--muted);
}

.installation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.installation-card {
    overflow: hidden;
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.installation-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.installation-card figcaption {
    min-height: 66px;
    padding: 14px 16px;
    color: var(--muted);
    font-weight: 700;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.step {
    padding: 22px;
}

.step__number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    color: #fff;
    background: var(--green);
    border-radius: 8px;
    font-weight: 900;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.step p {
    margin: 0;
    color: var(--muted);
}

.quote-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 30px;
    background: #fff;
}

.quote-panel h2 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.quote-panel p {
    margin: 0;
    color: var(--muted);
}

.quote-panel del {
    color: var(--muted);
}

.quote-panel strong {
    color: var(--green);
}

.electrohome-promo-price {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin: 12px 0;
}

.electrohome-promo-price del {
    color: var(--muted);
}

.electrohome-promo-price ins {
    color: var(--green);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 900;
}

.electrohome-agenda {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 18px;
}

.electrohome-agenda h3,
.electrohome-agenda p {
    margin: 0;
}

.electrohome-agenda__intro {
    color: var(--muted);
}

.electrohome-agenda label {
    font-weight: 800;
}

.electrohome-agenda__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: var(--soft);
    border-radius: 8px;
}

.electrohome-agenda__check input {
    flex: 0 0 auto;
    width: auto;
    min-height: 0;
    margin-top: 5px;
}

.electrohome-agenda__help {
    color: var(--muted);
    font-size: 0.92rem;
}

.electrohome-confirmacion {
    padding: 18px;
    margin: 24px 0;
    background: #e8f6ef;
    border: 1px solid #b7dfc9;
    border-radius: 8px;
}

.electrohome-agenda input,
.electrohome-agenda select,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.electrohome-agenda .electrohome-agenda__check input {
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
}

.woocommerce div.product form.cart .button {
    color: #fff;
    background: var(--blue);
    border-radius: 8px;
}

.woocommerce span.onsale {
    background: var(--green);
}

.product_meta {
    display: none;
}

.woocommerce div.product,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.site-main {
    width: min(1120px, calc(100% - 32px));
    margin: 48px auto;
}

.site-footer {
    padding: 34px 0;
    color: #d8e4e7;
    background: #0f1c23;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 760px) {
    .site-header__inner {
        min-height: 64px;
    }

    .site-nav {
        display: none;
    }

    .brand {
        width: 196px;
    }

    .hero {
        min-height: auto;
    }

    .hero__content {
        padding: 64px 0 72px;
    }

    .hero__facts,
    .service-grid,
    .check-grid,
    .installation-grid,
    .steps,
    .quote-panel {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 58px 0;
    }

    .section__head {
        display: block;
    }

    .section__head p {
        margin-top: 14px;
    }

    .site-footer__inner {
        display: block;
    }
}
