/* ============================================================
   PRODUCTOS DESTACADOS - INDEX
============================================================ */
.productos-destacados {
    width: 100%;
    padding: 70px 5%;
    box-sizing: border-box;
    overflow: hidden;
}

/* ============================================================
   ENCABEZADO
============================================================ */
.productos-destacados-header {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: center;
}

.productos-etiqueta {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #3498db;
}

.productos-destacados-header h2 {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 700;
}

.productos-destacados-header p {
    margin: 0 auto;
    max-width: 700px;
    font-size: 16px;
    line-height: 1.6;
}

/* ============================================================
   SWIPER
============================================================ */
.productosSwiper {
    position: relative;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 15px 45px 55px;
    box-sizing: border-box;
}

.productosSwiper .swiper-wrapper {
    align-items: stretch;
}

.productosSwiper .swiper-slide {
    height: auto;
    display: flex;
}

/* ============================================================
   IMAGEN
============================================================ */
.producto-destacado-imagen {
    position: relative;
    width: 100%;
    height: 230px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
}

.producto-destacado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}


/* ============================================================
   TARJETA PRINCIPAL - PRODUCTO DESTACADO
============================================================ */
.productos-destacados .producto-destacado-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e7ef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.producto-destacado-card:hover
.producto-destacado-imagen img {
    transform: scale(1.05);
}

/* ============================================================
   BADGE DESTACADO
============================================================ */
.producto-destacado-imagen .badge-destacado {
    position: absolute;
    z-index: 5;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 20px;
    background: #2a4b7c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   BADGE OFERTA
============================================================ */
.producto-destacado-imagen .badge-oferta {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 20px;
    background: #e74c3c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   INFORMACIÓN DEL PRODUCTO
============================================================ */
.producto-destacado-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.producto-destacado-info .producto-categoria {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 9px;
    padding: 5px 9px;
    border-radius: 5px;
    background: #edf4fb;
    color: #2a4b7c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.producto-destacado-info h3 {
    margin: 0 0 15px;
    color: #1f2937;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

.producto-destacado-info p {
    margin: 4px 0;
    color: #5f6875;
    font-size: 14px;
    line-height: 1.5;
}

.producto-destacado-info strong {
    color: #374151;
}

/* ============================================================
   BOTÓN VER PRODUCTO
============================================================ */
.producto-destacado-info .btn-producto {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #2a4b7c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.producto-destacado-info .btn-producto i {
    transition: transform 0.25s ease;
}

.producto-destacado-info .btn-producto:hover {
    color: #3498db;
}

.producto-destacado-info .btn-producto:hover i {
    transform: translateX(5px);
}

/* ============================================================
   FLECHAS SWIPER
============================================================ */
.productos-destacados
.swiper-button-next,
.productos-destacados
.swiper-button-prev {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2a4b7c;
    color: #ffffff;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.18);
}

.productos-destacados
.swiper-button-next::after,

.productos-destacados
.swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.productos-destacados
.swiper-button-next:hover,
.productos-destacados
.swiper-button-prev:hover {
    background: #3498db;
}

/* ============================================================
   PAGINACIÓN
============================================================ */
.productos-destacados
.swiper-pagination {
    bottom: 10px;
}

.productos-destacados
.swiper-pagination-bullet {
    width: 9px;
    height: 9px;
}

.productos-destacados
.swiper-pagination-bullet-active {
    background: #2a4b7c;
}

/* ============================================================
   BOTÓN CATÁLOGO COMPLETO
============================================================ */

.productos-destacados-footer {
    margin-top: 20px;
    text-align: center;
}

.btn-catalogo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 12px 22px;
    border-radius: 6px;
    background: #2a4b7c;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.btn-catalogo:hover {
    background: #3498db;
    transform: translateY(-2px);
}


/* ============================================================
   TABLET
============================================================ */
@media (max-width: 1024px) {
    .productos-destacados {
        padding: 60px 4%;
    }
    .productos-destacados-header h2 {
        font-size: 30px;
    }
    .producto-destacado-imagen {
        height: 210px;
    }
}


/* ============================================================
   MÓVIL
============================================================ */
@media (max-width: 640px) {
    .productos-destacados {
        padding: 50px 15px;
    }
    .productos-destacados-header {
        margin-bottom: 25px;
    }
    .productos-destacados-header h2 {
        font-size: 27px;
    }
    .productos-destacados-header p {
        font-size: 14px;
    }

    .productosSwiper {
        padding:
            10px
            10px
            50px;
    }
    .producto-destacado-imagen {
        height: 230px;
    }
    .productos-destacados
    .swiper-button-next,

    .productos-destacados
    .swiper-button-prev {
        display: none;
    }
}


/* ============================================================
   MODAL DE PRODUCTOS DESTACADOS
   Estilos consolidados: sin reglas duplicadas
============================================================ */
.modal-destacado {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(10, 25, 48, .82);
    overflow-y: auto;
}
.modal-destacado-ventana {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #fff;
    color: #111;
}
.modal-destacado-cerrar {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 30px;
    cursor: pointer;
}
.modal-destacado .destacado-modal-contenido {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}
.modal-destacado .destacado-modal-lateral {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 18px;
}
.modal-destacado .destacado-modal-imagen img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}
.modal-destacado .destacado-modal-sin-imagen {
    padding: 35px 10px;
    text-align: center;
    color: #667085;
}
.modal-destacado .destacado-modal-ficha-tecnica {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dce4ef;
    border-radius: 10px;
    background: #f7f9fc;
}
.modal-destacado .destacado-modal-pdf-icono {
    flex: 0 0 auto;
    padding: 7px 5px;
    border-radius: 4px;
    background: #d92d20;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.modal-destacado .destacado-modal-pdf-info {
    flex: 1 1 120px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.modal-destacado .destacado-modal-pdf-info strong {
    font-size: 13px;
    color: #1d2939;
}
.modal-destacado .destacado-modal-pdf-info span {
    font-size: 12px;
    line-height: 1.4;
    color: #667085;
}
.modal-destacado .destacado-modal-brochure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 9px 12px;
    border-radius: 6px;
    background: #24519b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.modal-destacado .destacado-modal-brochure:hover { background: #173c70; }
.modal-destacado .destacado-modal-brochure:focus-visible {
    outline: 2px solid #24519b;
    outline-offset: 3px;
}
.modal-destacado .destacado-modal-informacion {
    flex: 1.6;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.modal-destacado .destacado-modal-categoria {
    color: #2a4b7c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.modal-destacado .destacado-modal-informacion h2 {
    margin: 10px 0 18px;
    color: #111;
    font-size: 25px;
    line-height: 1.3;
}
.modal-destacado .destacado-modal-informacion p {
    margin: 8px 0;
    color: #333;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.modal-destacado .destacado-modal-precio {
    margin: 20px 0;
    padding: 14px;
    border-radius: 9px;
    background: #f2f6fa;
}
.modal-destacado .destacado-modal-actual strong {
    color: #173c70;
    font-size: 24px;
}
.modal-destacado .destacado-modal-oferta { color: #b32323; font-weight: 700; }
.modal-destacado .destacado-modal-anterior { color: #666; }
.modal-destacado .destacado-modal-descripcion {
    margin: 20px 0;
    max-height: 260px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 12px;
    color: #111;
    scrollbar-width: thin;
    scrollbar-color: #9aabc1 #f0f3f7;
}
.modal-destacado .destacado-modal-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.modal-destacado .destacado-modal-volver,
.modal-destacado .destacado-modal-comprar {
    border: 0;
    border-radius: 7px;
    padding: 12px 16px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.modal-destacado .destacado-modal-volver { background: #e8edf3; color: #1d3555; }
.modal-destacado .destacado-modal-comprar { background: #2a4b7c; color: #fff; }
.modal-destacado .destacado-error { color: #9c2525; }

@media (max-width: 700px) {
    .modal-destacado { padding: 12px; }
    .modal-destacado-ventana { max-height: 94vh; padding: 38px 18px 22px; }
    .modal-destacado .destacado-modal-contenido { flex-direction: column; gap: 16px; }
    .modal-destacado .destacado-modal-lateral { width: 100%; padding-top: 0; }
    .modal-destacado .destacado-modal-imagen img { max-height: 220px; }
    .modal-destacado .destacado-modal-informacion { width: 100%; }
    .modal-destacado .destacado-modal-descripcion { max-height: 180px; }
}
