/* RESET BÁSICO */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
}

/* CONTENEDOR GENERAL */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* CABECERA */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 55px;
}

.menu a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.btn-presupuesto {
    background: #d60000;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* HERO */
.hero {
    position: relative;
    background: url('/assets/img/hero.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 700px;
}

/* SEPARAR BOTONES DEL TEXTO */
.hero-buttons {
    margin-top: 40px; /* antes 0 → ahora respira */
}

.hero-buttons a {
    margin: 10px;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 18px;
    text-decoration: none;
}

.btn-rojo {
    background: #d60000;
    color: #fff;
}

.btn-blanco {
    background: #fff;
    color: #d60000;
}

/* BAJAR ICONOS DEL HERO PARA QUE NO SE JUNTE CON LOS BOTONES */
.hero-icons {
    margin-top: 70px; /* antes 40 → ahora perfecto */
    font-size: 18px;
    line-height: 1.6;
}

/* CATEGORÍAS */
.categorias {
    padding: 60px 20px;
    text-align: center;
}

.grid-categorias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

.cat-card {
    background: #f7f7f7;
    padding: 40px 0;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
    transition: 0.2s;
}

.cat-card:hover {
    background: #fff;
    border: 2px solid #d60000;
}

/* POR QUÉ ELEGIRNOS */
.por-que {
    background: #fafafa;
    padding: 60px 20px;
}

.pq-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.pq-item h3 {
    margin-bottom: 10px;
}

/* CTA FINAL */
.cta-final {
    padding: 60px 20px;
    text-align: center;
}

.btn-rojo.grande {
    padding: 15px 40px;
    font-size: 20px;
}

/* FOOTER */
.footer {
    background: #111;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}

.logo-footer {
    height: 45px;
    margin-bottom: 10px;
}
/* FOOTER */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    background: #f5f5f5;
}

.footer-logo img {
    width: 160px;
    margin-bottom: 10px;
}

/* FORMULARIO */
.formulario {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ANTI‑SPAM */
.antispam {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.antispam input {
    width: 60px;
    padding: 6px;
    text-align: center;
}

/* BOTÓN ENVIAR */
.btn-enviar {
    background: #d60000;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.btn-enviar:hover {
    background: #b30000;
}
/* BLOQUE QUIÉNES SOMOS */
.quienes-somos-home {
    background: #f5f5f5;
    padding: 60px 20px;
    margin-top: 40px;
}

.qs-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.qs-texto {
    flex: 1;
    min-width: 300px;
}

.qs-texto h2 {
    color: #cc0000;
    font-size: 28px;
    margin-bottom: 15px;
}

.qs-texto p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.qs-botones {
    margin-top: 25px;
}

.qs-botones .btn-rojo {
    padding: 12px 20px;
    background: #cc0000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin-right: 10px;
}

.qs-botones .btn-negro {
    padding: 12px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.qs-imagen {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.qs-imagen img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* CABECERA FLEX CORRECTA */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* BUSCADOR CENTRADO */
.buscador {
    flex: 1;
    max-width: 800px; /* MÁS ANCHO */
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

#searchResults {
    position: absolute;
    top: 42px;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    max-height: 350px;
    overflow-y: auto;
    z-index: 999;
}

.result-item {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.result-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.result-item:hover {
    background: #f7f7f7;
}
/* ⭐ Estilos del botón de Búsqueda Avanzada (buscador-mini.js) */
.result-advanced {
    padding: 18px 12px;   /* Más alto */
    text-align: center;
    background: #f3f3f3;
    cursor: pointer;
    font-weight: bold;
    border-top: 1px solid #ddd;
    font-size: 1rem;
}

.result-advanced:hover {
    background: #e8e8e8;
}
/* QUIÉNES SOMOS – ESTILOS ESPECÍFICOS */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 25px 0 40px 0;
}

.valores-grid h3 {
    margin-bottom: 8px;
}

.cta-box {
    margin-top: 40px;
    text-align: center;
}
.cta-box {
    margin-top: 80px !important;
}
.cta-box a {
    text-decoration: none !important;
}
.faq-container {
    max-width: 900px;
    margin: 40px auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
    cursor: pointer;
}

.faq-question {
    color: #c40000; /* ROJO */
    font-weight: bold;
    font-size: 16px; /* MÁS PEQUEÑO */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    display: none;
    color: #555; /* GRIS ELEGANTE */
    font-size: 14px; /* MUCHO MÁS PEQUEÑO */
    padding: 8px 0 0 0;
    line-height: 1.5;
}

.faq-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.faq-item.open .faq-arrow {
    transform: rotate(90deg);
}

.faq-item.open .faq-answer {
    display: block;
}
/* Evitar que el botón "Solicitar presupuesto" se parta en dos líneas */
.btn-presupuesto {
    white-space: nowrap;
    display: inline-block;
}
/* Ajuste fino del botón en cabecera estrecha */
@media (max-width: 1280px) {
    .btn-presupuesto {
        font-size: 14px;
        padding-left: 10px;
        padding-right: 10px;
    }
}
/* ============================
   CONTENEDOR GENERAL
============================ */
.carrito-container {
    padding: 40px 0;
}

.carrito-container h1 {
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 700;
    color: #222;
}

/* ============================
   ITEM DEL CARRITO
============================ */
.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform .15s ease;
}

.carrito-item:hover {
    transform: translateY(-2px);
}

/* ============================
   INFO DEL PRODUCTO
============================ */
.carrito-info {
    max-width: 60%;
}

.carrito-nombre {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #c40000;
}

.carrito-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #444;
}

/* ============================
   PRECIOS
============================ */
.carrito-precio {
    text-align: right;
}

.carrito-precio p {
    margin: 4px 0;
    font-size: 15px;
}

.carrito-precio strong {
    color: #000;
}

/* ============================
   BOTÓN ELIMINAR
============================ */
.carrito-eliminar {
    background: #D60000;       /* ← CAMBIADO */
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 20px;
    transition: background .2s ease, transform .1s ease;
}

.carrito-eliminar:hover {
    background: #b30000;       /* ← CAMBIADO */
    transform: scale(1.05);
}

/* ============================
   TRANSPORTE + TOTAL
============================ */
.carrito-transporte,
.carrito-total {
    margin-top: 25px;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

/* ============================
   BOTONES FINALES
============================ */
.carrito-acciones {
    margin-top: 35px;
    display: flex;
    gap: 20px;
}

.carrito-acciones a {
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
}

.carrito-acciones .btn-negro {
    background: #222;
    color: #fff;
}

.carrito-acciones .btn-negro:hover {
    background: #000;
}

.carrito-acciones .btn-presupuesto {
    background: #c40000;
    color: #fff;
}

.carrito-acciones .btn-presupuesto:hover {
    background: #a00000;
}
.carrito-total-box {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.linea-total {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
}

.total-final {
    font-size: 18px;
    color: #c62828;
}

.separador-total {
    border: none;
    border-top: 1px solid #ddd;
    margin: 12px 0;
}
.carrito-recuperar {
    margin-top: 25px;
}

.recuperar-flex {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

#codigo-carrito {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    flex: 1;
}
.btn-generar-pdf {
    background: #ffffff;
    color: #c40000;
    border: 2px solid #c40000;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-generar-pdf:hover {
    background: #c40000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-generar-pdf {
    background: #fff;
    color: #c40000;
    border: 2px solid #c40000;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-generar-pdf:hover {
    background: #c40000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-generar-pdf {
    background: #ffffff;
    color: #c40000;
    border: 2px solid #c40000;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-generar-pdf:hover {
    background: #c40000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* BOTÓN GENERAR PDF — PREMIUM */
.btn-pdf {
    background: #ffffff;
    color: #c40000;
    border: 2px solid #c40000;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.btn-pdf:hover {
    background: #c40000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* BOTÓN CARGAR CARRITO — MODERNO */
.btn-cargar {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-cargar:hover {
    background: #e9e9e9;
    border-color: #bbb;
    transform: translateY(-2px);
}
.btn-pdf {
    background: #d8d8d8;        /* gris oscuro elegante */
    color: #222;                /* texto gris carbón */
    border: 1px solid #bfbfbf;  /* borde suave */
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-pdf:hover {
    background: #c9c9c9;        /* un poco más oscuro al pasar el ratón */
    border-color: #b3b3b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-pdf span {
    font-size: 15px;
}
.carrito-acciones {
    display: flex;
    justify-content: flex-end;   /* LOS MANDA A LA DERECHA */
    gap: 12px;                    /* SEPARACIÓN ENTRE BOTONES */
    margin-top: 25px;
}
.carrito-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.carrito-foto {
    width: 90px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

.carrito-info {
    flex: 1;
}

.carrito-precio {
    text-align: right;
    min-width: 120px;
}
.carrito-precio {
    margin-left: 60px;
    min-width: 140px;
}
.carrito-precio {
    text-align: left;   /* ⭐ opcional: queda más natural */
}
.carrito-precio {
    margin-right: 60px;   /* ⭐ mueve el bloque hacia la izquierda */
    text-align: right;    /* ⭐ mantiene el botón alineado a la derecha */
}
.carrito-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.carrito-link:hover {
    text-decoration: underline;
}
.carrito-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-right: 20 px; /* mueve los botones hacia la izquierda */
    margin-top: 25px;
}
/* Contenedor del bloque de recuperar carrito */
.carrito-recuperar {
    margin-top: 35px;
    max-width: 520px; /* ⭐ EXACTO: ancho entre Seguir comprando y Tramitar pedido */
    margin-left: auto; 
    margin-right: 25px/* ⭐ mismo margen que los botones */
    padding: 15px 20px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Texto del label */
.carrito-recuperar label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

/* Input + botón alineados */
.recuperar-flex {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Input más pequeño y elegante */
#codigo-carrito {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Botón cargar */
.btn-cargar {
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
}
