/* =========================================================
   SolarTech Chocó — estilos generales
   Paleta basada en el logo: verde, azul y amarillo/naranja
   ========================================================= */
:root {
    --verde: #43a047;
    --verde-oscuro: #1b5e20;
    --azul: #1565c0;
    --azul-oscuro: #0d47a1;
    --amarillo: #fdb813;
    --oscuro: #16241a;
    --gris-claro: #f5f8f6;
    --sombra: 0 .5rem 1.5rem rgba(22, 36, 26, .08);
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--oscuro);
    background-color: #fff;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
}

a {
    text-decoration: none;
}

.text-verde { color: var(--verde) !important; }
.text-azul { color: var(--azul) !important; }
.bg-verde { background-color: var(--verde) !important; }
.bg-oscuro { background-color: var(--oscuro) !important; }
.bg-suave { background-color: var(--gris-claro) !important; }

/* Botones de marca */
.btn-solar {
    background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: .7rem 1.6rem;
    border-radius: .6rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-solar:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--sombra);
}
.btn-outline-solar {
    border: 2px solid var(--verde);
    color: var(--verde);
    font-weight: 600;
    border-radius: .6rem;
    padding: .65rem 1.6rem;
    transition: all .15s ease;
}
.btn-outline-solar:hover {
    background-color: var(--verde);
    color: #fff;
}
.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: .6rem;
}
.btn-whatsapp:hover { color: #fff; filter: brightness(0.95); }

/* Navbar */
.navbar-solar {
    background-color: rgba(255, 255, 255, .97);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: padding .2s ease;
}
.navbar-solar .navbar-brand img { height: 52px; transition: height .2s ease; }
.navbar-solar .nav-link {
    font-weight: 600;
    color: var(--oscuro) !important;
    margin: 0 .35rem;
    position: relative;
}
.navbar-solar .nav-link.active,
.navbar-solar .nav-link:hover {
    color: var(--verde) !important;
}
.navbar-solar .nav-link.active::after {
    content: "";
    position: absolute;
    left: .2rem; right: .2rem; bottom: 0;
    height: 3px;
    background: var(--amarillo);
    border-radius: 3px;
}

/* Banner/Hero de fotos (inicio) */
.hero-carousel {
    position: relative;
    overflow: hidden;
}
.hero-carousel .carousel-item img {
    height: 520px;
    object-fit: cover;
    object-position: left center;
}
.hero-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(27,94,32,.55), rgba(21,101,192,.45));
    z-index: 1;
    pointer-events: none;
}
.hero-carousel-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 25%, rgba(253,184,19,.25) 0, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,.12) 0, transparent 40%);
}
.hero-carousel-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    color: #fff;
    pointer-events: none;
}
.hero-carousel-content a {
    pointer-events: auto;
}
.hero-carousel-content h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-carousel-content .lead { font-size: 1.15rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero-carousel .carousel-indicators,
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 3;
}
.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
}
@media (max-width: 767.98px) {
    .hero-carousel .carousel-item img { height: 640px; }
}

/* Hero */
.hero {
    background: linear-gradient(120deg, rgba(27,94,32,.95), rgba(21,101,192,.9));
    color: #fff;
    padding: 6.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 25%, rgba(253,184,19,.25) 0, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,.12) 0, transparent 40%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.hero .lead { font-size: 1.15rem; opacity: .95; }
.hero-badge {
    display: inline-block;
    background: rgba(253, 184, 19, .18);
    border: 1px solid var(--amarillo);
    color: var(--amarillo);
    padding: .3rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .03em;
}

/* Secciones */
.section-title {
    position: relative;
    padding-bottom: .8rem;
    margin-bottom: 2.5rem;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--verde), var(--amarillo));
}
.section-title.text-start::after { left: 0; transform: none; }

.icono-circulo {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--verde), var(--azul));
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Tarjetas */
.card-solar {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--sombra);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.card-solar:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem rgba(22, 36, 26, .14);
}

.card-sistema {
    border-top: 5px solid var(--verde);
    border-radius: 1rem;
    box-shadow: var(--sombra);
    height: 100%;
}
.card-sistema.off-grid { border-top-color: var(--azul); }
.card-sistema.hibrido { border-top-color: var(--amarillo); }

.badge-solar {
    background-color: var(--verde);
}

/* Productos */
.producto-imagen {
    height: 210px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
    background-color: var(--gris-claro);
}
.filtro-categoria .btn {
    border-radius: 2rem;
    font-weight: 600;
    margin: .25rem;
}
.producto-nombre-link {
    cursor: pointer;
}
.producto-nombre-link:hover {
    color: var(--verde) !important;
}
.precio-producto {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--azul-oscuro);
}

/* Contacto */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info-item i {
    font-size: 1.4rem;
    color: var(--verde);
    background: var(--gris-claro);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Footer */
footer.site-footer {
    background-color: var(--oscuro);
    color: #dfe7e1;
}
footer.site-footer a { color: #dfe7e1; }
footer.site-footer a:hover { color: var(--amarillo); }
footer.site-footer h5 { color: #fff; }

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    z-index: 1050;
    animation: pulse-wa 2.4s infinite;
}
.whatsapp-float:hover { color: #fff; }
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Utilidades */
.py-section { padding-top: 5rem; padding-bottom: 5rem; }

@media (max-width: 767.98px) {
    .py-section { padding-top: 3rem; padding-bottom: 3rem; }
    .hero { padding: 4.5rem 0 3.5rem; text-align: center; }
}
