/* --- PALETA DE COLORES Y ESTILOS GENERALES --- */
:root {
    --azul-principal: #0056b3;
    --azul-oscuro: #003875;
    --rojo-oferta: #d9534f;
    --rojo-hover: #c9302c;
    --gris-fondo: #f8f9fa;
    --gris-tarjeta: #ffffff;
    --gris-texto: #333333;
    --verde-whatsapp: #25d366;
    --verde-whatsapp-hover: #1ebd56;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gris-fondo);
    color: var(--gris-texto);
    line-height: 1.6;
}

/* --- 1. BARRA SUPERIOR BLANCA PARA EL LOGO --- */
.header-logo {
    background-color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.header-logo img {
    max-height: 65px;
    width: auto;
    display: inline-block;
}

/* --- 2. BANNER AZUL PRINCIPAL (HERO) --- */
.hero-banner {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-principal));
    color: white;
    text-align: center;
    padding: 35px 20px;
}

.hero-banner h1 {
    font-size: 2rem;
    margin: 10px 0;
}

.hero-banner p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.badge-descuento {
    background-color: var(--rojo-oferta);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-principal {
    background-color: var(--verde-whatsapp);
    color: white;
    padding: 12px 26px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
    font-size: 1.05rem;
    transition: background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.btn-principal:hover {
    background-color: var(--verde-whatsapp-hover);
}

/* --- CONTENEDOR PRINCIPAL Y TARJETAS --- */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.seccion-titulo {
    border-left: 5px solid var(--azul-principal);
    padding-left: 12px;
    color: var(--azul-oscuro);
    margin-bottom: 25px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.tarjeta-producto {
    background: var(--gris-tarjeta);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
}

.tarjeta-producto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.contenido-tarjeta {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contenido-tarjeta h3 {
    color: var(--azul-oscuro);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contenido-tarjeta ul {
    list-style: none;
    margin-bottom: 15px;
    flex-grow: 1;
}

.contenido-tarjeta li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.contenido-tarjeta li::before {
    content: "✓";
    color: var(--azul-principal);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.precio-caja {
    background-color: #f1f3f5;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
}

.precio-oferta {
    color: var(--rojo-oferta);
    font-weight: bold;
    font-size: 1rem;
}

.btn-cotizar {
    background-color: var(--azul-principal);
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: block;
    transition: background 0.3s ease;
}

.btn-cotizar:hover {
    background-color: var(--azul-oscuro);
}

/* --- BANNER DE INSTALACIÓN --- */
.banner-instalacion {
    background: #eef5ff;
    border: 2px dashed var(--azul-principal);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 50px;
}

.banner-instalacion h3 {
    color: var(--azul-oscuro);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* --- PIE DE PÁGINA --- */
footer {
    background-color: var(--azul-oscuro);
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

footer p {
    opacity: 0.85;
    margin-bottom: 8px;
}

.footer-direccion {
    margin: 12px 0;
    font-style: normal;
    opacity: 0.9;
}

.footer-sociales {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-sociales a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-sociales a:hover {
    background-color: var(--azul-principal);
}

.footer-sociales a.whatsapp {
    background-color: var(--verde-whatsapp);
}

.footer-sociales a.whatsapp:hover {
    background-color: var(--verde-whatsapp-hover);
}

/* Enlace de Google Maps en texto blanco legible */
.footer-sociales a.enlace-google {
    background-color: transparent;
    text-decoration: underline;
    padding: 0;
}

.footer-sociales a.enlace-google:hover {
    background-color: transparent;
    color: #e0e0e0;
}