@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&family=Titillium+Web:wght@200;300;400;600;700&display=swap');

/* =========================================================
   RESET GENERAL
========================================================= */

*{
    margin:1px;
    padding:0;
    font-family:'Open Sans';
}

/* =========================================================
   HEADER
========================================================= */

header{
    width:100%;
    height:50vh;
    min-height:260px;
    max-height:480px;

    background-image:url("img/header.webp");
    background-size:contain;
    background-position:center center;
    background-repeat:no-repeat;
}

header h1{
    text-align:center;
    font-size:35px;
    color:#fff;
    padding:30px 0;
}

/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */

.contenedor{
    max-width:1200px;
    padding:10px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    contain:paint;
}

/* =========================================================
   PRODUCTOS
========================================================= */

.contenedor .contenedor-items{
    margin-top:30px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    grid-gap:20px;
    grid-row-gap:20px;
    width:100%;
    transition:.3s;
}

.contenedor .contenedor-items .item{
    max-width:200px;
    margin:auto;
    border:1px solid #e0e0e0;
    border-radius:10px;
    padding:20px;
    transition:.3s;
}

.contenedor .contenedor-items .item:hover{
    box-shadow:0 0 10px #666;
    scale:1.05;
}

.contenedor .contenedor-items .item .img-item{
    width:100%;
}

.contenedor .contenedor-items .item .titulo-item{
    display:block;
    font-weight:bold;
    text-align:center;
    text-transform:uppercase;
}

.contenedor .contenedor-items .item .precio-item{
    display:block;
    text-align:center;
    font-weight:bold;
    font-size:22px;
}

.contenedor .contenedor-items .item .boton-item{
    display:block;
    margin:8px auto;
    border:none;
    background-color:#0B1D3A;
    color:#fff;
    padding:5px 15px;
    border-radius:5px;
    cursor:pointer;
}

/* =========================================================
   CARRITO
========================================================= */

.carrito{
    border:1px solid #666;
    width:35%;
    margin-top:10px;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:auto;

    position:sticky !important;
    top:0;

    transition:.3s;

    margin-right:-100%;
    opacity:0;
}

.carrito .header-carrito{
    background-color:#0B1D3A;
    color:#fff;
    text-align:center;
}

.carrito .carrito-item{
    display:flex;
    align-items:center;
    position:relative;
    border-bottom:1px solid #666;
    padding:5px;
}

.carrito .carrito-item img{
    margin-right:20px;
}

.carrito .carrito-item .carrito-item-titulo{
    display:block;
    font-weight:bold;
    margin-bottom:10px;
    text-transform:uppercase;
}

.carrito .carrito-item .selector-cantidad{
    display:inline-block;
    margin-right:25px;
}

.carrito .carrito-item .carrito-item-cantidad{
    border:none;
    font-size:18px;
    background-color:transparent;
    display:inline-block;
    width:30px;
    padding:5px;
    text-align:center;
}

.carrito .carrito-item .selector-cantidad i{
    font-size:18px;
    width:32px;
    height:32px;
    line-height:32px;
    text-align:center;
    border-radius:50%;
    border:1px solid #FF7300;
    cursor:pointer;
}

.carrito .carrito-item .carrito-item-precio{
    font-weight:bold;
    display:inline-block;
    font-size:18px;
    margin-bottom:5px;
}

.carrito .carrito-item .btn-eliminar{
    position:absolute;
    right:15px;
    top:15px;

    color:#000;
    width:40px;
    height:40px;
    line-height:40px;

    text-align:center;
    border-radius:50%;
    border:1px solid #000;

    cursor:pointer;
    display:block;
    background:transparent;
    z-index:20;
}

.carrito .carrito-item .btn-eliminar i{
    pointer-events:none;
}

/* =========================================================
   TOTAL
========================================================= */

.carrito-total{
    background-color:#f3f3f3;
    padding:15px;
}

.carrito-total .fila{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:22px;
    font-weight:bold;
    margin-bottom:10px;
}

.carrito-precio-total{
    color:#FF7300;
    font-weight:700;
}

.carrito-total .btn-pagar{
    display:flex;
    justify-content:space-between;
    align-items:center;

    width:100%;
    border:none;

    background:#0B1D3A;
    color:#fff;

    border-radius:5px;
    font-size:18px;
    padding:20px;

    cursor:pointer;
    transition:.3s;
}

.carrito-total .btn-pagar:hover{
    scale:1.05;
}

/* =========================================================
   FORMULARIO CLIENTE
========================================================= */

.datos-cliente{
    padding:0 0 15px 0;
    border-top:1px solid #eee;

    display:flex;
    flex-direction:column;
    gap:12px;
}

.datos-cliente label{
    font-size:13px;
    font-weight:600;
    color:#444;
}

.datos-cliente input,
.datos-cliente textarea{
    width:100%;
    padding:12px 14px;
    font-size:14px;

    border-radius:10px;
    border:1px solid #ddd;

    outline:none;
    background:#fafafa;

    transition:all 0.25s ease;
    box-sizing:border-box;
}

.datos-cliente input:focus,
.datos-cliente textarea:focus{
    border-color:#111;
    background:#fff;
    box-shadow:0 0 0 2px rgba(0,0,0,0.08);
}

.datos-cliente input::placeholder,
.datos-cliente textarea::placeholder{
    color:#aaa;
}

.datos-cliente textarea{
    resize:none;
    min-height:70px;
}

/* INPUT ICON */

.input-icon{
    position:relative;
}

.input-icon i{
    position:absolute;
    top:50%;
    left:12px;
    transform:translateY(-50%);
    color:#999;
    font-size:14px;
}

.input-icon input{
    padding-left:38px;
}

/* =========================================================
   MODAL GRACIAS
========================================================= */

.modal-gracias{
    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.6);

    display:none;
    align-items:center;
    justify-content:center;

    z-index:9999;
}

.modal-contenido{
    background:#fff;
    padding:30px 25px;
    border-radius:12px;

    text-align:center;

    max-width:320px;
    width:90%;

    box-shadow:0 10px 30px rgba(0,0,0,0.25);

    animation:fadeIn 0.3s ease;
}

.modal-contenido h3{
    margin:0 0 10px;
    color:#222;
}

.modal-contenido p{
    margin:0;
    color:#555;
    font-size:15px;
}

@keyframes fadeIn{
    from{
        transform:scale(0.9);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

/* =========================================================
   DESCRIPCIÓN PRODUCTO
========================================================= */

.logo{
    display:flex;
    align-items:center;
}

.producto-titulo-central{
    text-align:center;
    font-family:"Playfair Display", serif;
    font-size:34px;
    font-weight:600;
    color:#222;
    margin-bottom:40px;
}

.producto-descripcion-box{
    display:flex;
    gap:60px;
    align-items:flex-start;
    justify-content:center;

    max-width:1100px;
    margin:0 auto;
}

.producto-descripcion{
    flex:1;
    font-family:"Inter","Helvetica Neue",sans-serif;
    font-size:16px;
    line-height:1.7;
    color:#444;
}

.producto-descripcion p{
    margin-bottom:18px;
}

.producto-descripcion strong{
    font-weight:600;
    color:#222;
}

/* =========================================================
   ESPECIFICACIONES
========================================================= */

.producto-especificaciones{
    flex:0 0 360px;

    background:#FAFDFC;
    border:1px solid #e3e3e3;
    border-radius:10px;

    padding:22px 26px;

    font-family:"Inter","Helvetica Neue",sans-serif;
}

.producto-especificaciones ul{
    list-style:none;
    margin:0;
    padding:0;
}

.producto-especificaciones li{
    display:flex;
    justify-content:space-between;

    font-size:15px;
    color:#333;

    padding:10px 0;

    border-bottom:1px solid #e0e0e0;
}

.producto-especificaciones li:last-child{
    border-bottom:none;
}

.producto-especificaciones strong{
    font-weight:600;
    color:#111;
}

/* =========================================================
   GALERÍA
========================================================= */

.galeria{
    display:flex;
    justify-content:center;
    gap:12px;
    margin:20px 0;
}



/* =========================================
   GALERÍA
========================================= */

.galeria {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.galeria img {
    width: 90px;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s;
}

.galeria img:hover {
    transform: scale(1.05);
}


/* =========================================
   MODAL IMAGEN
========================================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.8);
}

.modal-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.cerrar {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
}


/* =========================================
   NAVBAR / REDES
========================================= */

.navbar-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.redes-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 5px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}


/* =========================================
   BOTONES REDES
========================================= */

.btn-red {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 2px solid;
    background: #fff;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
}

/* FACEBOOK */
.btn-red.facebook:hover {
    background: #1877f2;
    color: #fff;
}

/* INSTAGRAM */
.btn-red.instagram {
    border-color: #FF7300;
    color: #000000;
}

.btn-red.instagram:hover {
    background: linear-gradient(45deg,#f77737,#e1306c,#833ab4);
    color: #ffffff;
}

/* TIKTOK */
.btn-red.tiktok {
    border-color: #000;
    color: #000;
}

.btn-red.tiktok:hover {
    background: #000;
    color: #fff;
}


/* =========================================
   BLOQUE CONFIANZA
========================================= */

.bloque-confianza {
    background: #f8f9fa;
    padding: 15px;
    margin: 18px auto;
    text-align: center;
    max-width: 480px;
    border-radius: 8px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.bloque-confianza p {
    margin: 4px 0;
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.mensaje-seguridad {
    text-align: center;
    font-size: 14px;
    margin: 12px 0;
    color: #2e7d32;
    font-weight: 600;
}


/* =========================================
   BOTÓN PAGAR
========================================= */

.btn-pagar {
    width: 100%;
    padding: 14px;
    background: #25D366;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-pagar:hover {
    background: #1ebe5d;
}


/* =========================================
   VIDEO PRODUCTO
========================================= */

.video-producto {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.video-producto video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}


/* =========================================
   OFERTA LIMITADA
========================================= */

.oferta-limitada {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0 25px 0;
}

.oferta-contenido {
    width: 90%;
    max-width: 400px;
    padding: 18px 25px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: linear-gradient(135deg, #fff, #f8f8f8);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.oferta-texto {
    display: block;
    margin: 5px 0;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-align: center;
    letter-spacing: 0.5px;
}

.contador-tiempo {
    font-size: 28px;
    font-weight: bold;
    color: #e10600;
    letter-spacing: 2px;
}

.precio-anterior {
    display: block;
    margin-bottom: -8px;
    font-size: 16px;
    color: #888;
    position: relative;
    text-decoration-line: line-through !important;
}

.precio-beneficio {
    font-size: 11px;
    color: #b00000;
    margin-bottom: -5px;
}


/* =========================================
   TEXOS EXTRA
========================================= */

.texto-demanda {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.texto-oferta {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.5px;
}

.mini-garantia {
    margin-top: 6px;
    text-align: center;
    font-size: 10px;
    line-height: 1.3;
    color: #888;
}

.mensaje-confianza {
    margin-bottom: 8px;
    text-align: center;
    font-size: 8px;
    color: #555;
}

.producto-titulo-central {
    margin-bottom: 8px !important;
}


/* =========================================
   OCULTAR DIRECCIÓN
========================================= */

#cliente-direccion,
#cliente-direccion + *,
label + #cliente-direccion,
label[for="cliente-direccion"],
label:has(+ #cliente-direccion) {
    display: none !important;
}


/* =========================================
   RESEÑAS CLIENTES
========================================= */

.reseñas-clientes {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.reseñas-clientes h2 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #222;
}

.galeria-reseñas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.reseña-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.reseña-item:hover {
    transform: scale(1.03);
}

.reseña-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================
   PROCESO ROMPECABEZAS
========================================= */

.proceso-container {
    text-align: center;
    margin: 10px 0 5px 0;
}

.titulo-proceso {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.proceso-rompecabezas {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 30px 0;
}

.pieza {
    position: relative;
    width: 200px;
    height: 70px;
    margin-right: 2px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 2px solid #0b1d3a87;
    border-radius: 15px;
    color: #333;
}

.pieza::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2px solid #0b1d3a87;
    border-radius: 50%;
    z-index: 2;
}

.pieza:last-child {
    margin-right: 0;
}

.pieza:last-child::after {
    display: none;
}

.numero {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    margin-bottom: 2px;
    font-size: 12px;
    border-radius: 50%;
    background: #0B1D3A;
    color: #ffffff;
}

.contenido h4 {
    margin: 0px 0;
    font-size: 12px;
    font-weight: 600;
}

.contenido p {
    margin: 0;
    font-size: 9px;
    color: #666;
}


/* =========================================
   WHATSAPP FLOAT
========================================= */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .proceso-rompecabezas {
        flex-direction: column;
        align-items: center;
    }

    .pieza {
        width: 90%;
        height: 90px;
        margin-bottom: 10px;
    }

    .pieza::after {
        display: none;
    }
}

@media (max-width: 576px) {

    .logo-icon {
        height: 36px;
        margin-right: -4px;
    }

    .logo-text {
        height: 22px;
    }

    .redes-top {
        gap: 4px;
    }

    .btn-red {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {

    .btn-red {
        font-size: 13px;
        padding: 5px 12px;
    }
}


/* =========================================================
   RESPONSIVE / MOBILE
========================================================= */

@media screen and (max-width:850px){

    .contenedor{
        display:block;
    }

    .contenedor-items{
        width:100% !important;
    }

    .carrito{
        width:100%;
    }
}

@media(max-width:768px){

    .producto-descripcion-box{
        flex-direction:column;
        gap:30px;
    }

    .producto-especificaciones{
        width:100%;
    }

    .producto-titulo-central{
        font-size:28px;
    }
}

@media(max-width:490px){

    header{
        height:40vh;
        min-height:220px;
        background-size:contain;
    }

    .contenedor .contenedor-items{
        grid-template-columns:repeat(2,1fr);
        gap:16px;
    }

    .contenedor .contenedor-items .item{
        max-width:none;
        margin:0;
        padding:14px;
    }

    .contenedor .contenedor-items .item:hover{
        transform:none;
        scale:1;
        box-shadow:0 0 6px rgba(0,0,0,0.15);
    }
}

@media(max-width:480px){

    .datos-cliente{
        padding:12px;
    }

    .producto-titulo-central{
        font-size:26px;
        line-height:1.2;
        margin-bottom:24px;
        padding:0 12px;
    }

    .producto-descripcion-box{
        gap:24px;
        padding:0 14px;
    }

    .producto-descripcion{
        font-size:17px;
        line-height:1.8;
    }

    .producto-descripcion p{
        margin-bottom:16px;
    }

    .producto-especificaciones{
        width:100%;
        padding:20px 18px;
        border-radius:12px;
        margin:0 auto;
    }

    .producto-especificaciones li{
        font-size:16px;
        padding:12px 0;
    }

    .producto-especificaciones strong{
        font-weight:600;
    }
}

/* Estilos del botón naranja y la animación de temblor */
    .btn-naranja-animado {
        display: inline-block;
        background-color: #ff6600; /* Color naranja */
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: bold;
        padding: 15px 30px;
        border-radius: 8px;
        text-decoration: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        text-align: center;
        /* La animación dura 2 segundos y se repite infinitamente */
        animation: temblar 2s infinite;
        transition: background-color 0.3s ease;
    }

    .btn-naranja-animado:hover {
        background-color: #e65c00; /* Naranja más oscuro al pasar el mouse */
        color: #ffffff;
        text-decoration: none;
    }

    /* Keyframes para el efecto de vibración/temblor */
    @keyframes temblar {
        0% { transform: translate(0, 0) rotate(0deg); }
        2% { transform: translate(-2px, 0) rotate(-2deg); }
        4% { transform: translate(2px, 0) rotate(2deg); }
        6% { transform: translate(-2px, 0) rotate(-2deg); }
        8% { transform: translate(2px, 0) rotate(2deg); }
        10% { transform: translate(0, 0) rotate(0deg); }
        100% { transform: translate(0, 0) rotate(0deg); }
    }

    /* Asegurar que el contenedor centre el botón perfectamente */
    .section-title-text {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 15px;
    }



