@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');
*{
    margin: 0;
    padding:0;
    font-family: 'Open Sans';
}
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;

}
@media (max-width: 490px) {
    header {
        height: 40vh;
        min-height: 220px;
        background-size: contain;
    }
}

header h1{
    text-align: center;
    font-size: 35px;
    /* background-color: #000; */
    color: #fff;
    padding: 30px 0;
}
.contenedor{
    max-width: 1200px;
    padding: 10px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    /* oculto lo que queda fuera del .contenedor */
    contain: paint;
}
/* SECCION CONTENEDOR DE ITEMS */
.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: 60%; */
    width: 100%;
    transition: .3s;
}
.contenedor .contenedor-items .item{
    max-width: 200px;
    margin: auto;
    border: 1px solid #666;
    border-radius: 10px;
    padding: 20px;
    transition: .3s;
}
.contenedor .contenedor-items .item .img-item{
    width: 100%;
}
.contenedor .contenedor-items .item:hover{
    box-shadow: 0 0 10px #666;
    scale: 1.05;
}
.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: 10px auto;
    border: none;
    background-color: #B13F00;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}
/* seccion carrito */
.carrito{
    border: 1px solid #666;
    width: 35%;
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: auto;
    position: sticky !important;
    top: 0;
    transition: .3s;
    /* Estilos para ocultar */
    margin-right: -100%;
    opacity: 0;
}
.carrito .header-carrito{
    background-color: #0072B1;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}
.carrito .carrito-item{
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    position: relative;
    border-bottom: 1px solid #666;
    padding: 20px;
}
.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 #000;
    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;
    font-size: 20px;
    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;
}

.carrito-total{
    background-color: #f3f3f3;
    padding: 30px;
}
.carrito-total .fila{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}
.carrito-total .btn-pagar{
    display: block;
    width: 100%;
    border: none;
    background: #0092bb;
    color: #fff;
    border-radius: 5px;
    font-size: 18px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: .3s;
}
.carrito-total .btn-pagar:hover{
    scale: 1.05;
}

/* SECCION RESPONSIVE */
@media screen and (max-width: 850px) {
    .contenedor {
      display: block;
    }
    .contenedor-items{
        width: 100% !important;
    }
    .carrito{
        width: 100%;
    }
  }
/* SECCION 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;
    }
}

/* =========================
   CAMPOS DATOS DEL CLIENTE
========================= */

.datos-cliente {
    padding: 15px;
    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;
}

/* Hover / Focus elegante */
.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);
}

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

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

/* Iconos dentro del input (opcional) */
.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;
}

.datos-cliente input,
.datos-cliente textarea {
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 480px) {
    .datos-cliente {
        padding: 12px;
    }
}

.carrito-precio-total {
    color: #2F8F6B; /* verde bajo, elegante y de confianza */
    font-weight: 700;
}



.producto-descripcion-box {
    max-width: 980px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 0 16px;
}

/* Columna descripción */
.producto-descripcion p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 14px;
}

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

.producto-especificaciones li {
    color: #555;
}

/* Tipografía sutil */
.producto-especificaciones strong {
    font-weight: 600;
    color: #333;
}

.producto-titulo-central {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    margin: 40px auto 28px;
    max-width: 900px;
    padding: 0 16px;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .producto-titulo-central {
        font-size: 1.4rem;
        margin: 28px auto 20px;
    }
}


/* 📱 Mobile: una sola columna */
@media (max-width: 768px) {
    .producto-descripcion-box {
        grid-template-columns: 1fr;
        gap: 28px;
        margin: 24px auto;
    }
}
@media (max-width: 490px) {

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

    .contenedor .contenedor-items .item {
        max-width: none;   /* 🔥 clave */
        margin: 0;
    }
}
@media (max-width: 490px) {

    .contenedor .contenedor-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px; /* más aire */
    }

    .contenedor .contenedor-items .item {
        max-width: none;
        margin: 0;
        padding: 14px; /* un poco menos */
    }

    /* ❌ Desactivar scale en móvil */
    .contenedor .contenedor-items .item:hover {
        transform: none;
        scale: 1;
        box-shadow: 0 0 6px rgba(0,0,0,0.15);
    }
}
.logo {
    display: flex;
    align-items: center;
}

/* Desktop */
.logo-icon {
    height: 42px;
    margin-right: 8px;
}

.logo-text {
    height: 50px;
}

/* Tablet */
@media (max-width: 768px) {
    .logo-icon {
        height: 34px;
    }

    .logo-text {
        height: 40px;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .logo-icon {
        height: 28px;
        margin-right: 6px;
    }

    .logo-text {
        height: 18px;
    }
}

.item {
    cursor: pointer;
    text-align: center;
}

.item:hover {
    transform: translateY(-2px);
}


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

/* ===== CONTENEDOR GENERAL ===== */
.producto-descripcion-box {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== LADO IZQUIERDO ===== */
.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;
}

/* ===== LADO DERECHO (TARJETA ELEGANTE SIN DIFUMINAR) ===== */
.producto-especificaciones {
    flex: 0 0 360px;
    background: #f6f6f6; /* sólido, no blur */
    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;
}

/* ===== RESPONSIVE (MÓVIL) ===== */
@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: 480px) {

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

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

    /* TEXTO DESCRIPCIÓN */
    .producto-descripcion {
        font-size: 17px; /* más legible */
        line-height: 1.8;
    }

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

    /* TARJETA */
    .producto-especificaciones {
        padding: 20px 18px;
        border-radius: 12px;
    }

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

    .producto-especificaciones strong {
        font-weight: 600;
    }
}
@media (max-width: 480px) {
    .producto-especificaciones {
        margin: 0 auto;
    }
}


/* GALERIA */
.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 */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.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;
}
.redes-top {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 5px;
    flex-wrap: nowrap;
}

/* BOTONES BASE */
.btn-red {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    color: #000;
    background: #fff;
    border: 2px solid #000;
    transition: all 0.25s ease;
    white-space: nowrap;
}

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

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

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

/* RESPONSIVE */
@media (max-width: 480px) {
    .btn-red {
        font-size: 13px;
        padding: 5px 12px;
    }
}
.btn-red {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
    border: 2px solid;
    background: #fff;
    font-weight: 600;
    white-space: nowrap;
}
/* ===== NAVBAR FIX DEFINITIVO ===== */
.navbar-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo no puede crecer infinito */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Redes SIEMPRE a la derecha */
.redes-top {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}
/* ===== MOBILE REAL: todo visible ===== */
@media (max-width: 576px) {

    .logo-icon {
        height: 26px;
        margin-right: 5px;
    }

    .logo-text {
        height: 22px;
    }

    .redes-top {
        gap: 4px;
    }

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

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

.bloque-confianza p {
    margin: 5px 0;
    font-size: 15px;
}
.mensaje-seguridad {
    text-align: center;
    font-size: 14px;
    margin: 12px 0;
    color: #2e7d32;
    font-weight: 600;
}
.btn-pagar {
    width: 100%;
    padding: 14px;
    background: #25D366;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-pagar:hover {
    background: #1ebe5d;
}
/* ===== VIDEO CUADRADO PROFESIONAL ===== */
.video-producto {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.video-producto video {
    width: 100%;
    aspect-ratio: 1 / 1; /* cuadrado perfecto */
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.oferta-limitada {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 15px 0 25px 0;
}

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

.oferta-texto {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.contador-tiempo {
    font-size: 28px;
    font-weight: bold;
    color: #e10600;
    letter-spacing: 2px;
}
.precio-anterior {
    display: block;
    font-size: 16px;
    color: #888;
    position: relative;
    text-decoration-line: line-through !important;
    text-decoration-color: #cc0000;
    text-decoration-thickness: 2px;
    margin-bottom: 4px;
}
/* ===== TEXTO DEMANDA ===== */
.texto-demanda {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}
/* ===== BLOQUE CONFIANZA MINIMAL ===== */
.bloque-confianza {
    margin: 18px auto;
    text-align: center;
    max-width: 480px;
}

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

/* ===== TEXTO OFERTA ===== */
.texto-oferta {
    font-size: 13px;
    font-weight: 600;
    color: #b00000;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
}
/* Texto oferta discreto */
.texto-oferta {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    text-align: center;
    letter-spacing: 0.5px;
    margin: 5px 0;
}

/* Ajuste fino título y demanda */
.producto-titulo-central {
    margin-bottom: 8px !important;
}

.texto-demanda {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-align: center;
}
.mini-garantia {
    font-size: 10px;
    color: #888;
    text-align: center;
    margin-top: 6px;
    line-height: 1.3;
}

.precio-beneficio {
    font-size: 11px;
    color: #b00000;
    margin-bottom: 3px;
}
.mensaje-confianza {
    font-size: 13px;
    color: #555;
    text-align: center;
    margin-bottom: 8px;
}


/* -------------------------------------------------------borrar de aqui BORRAR PARA PEDIR DIRECCION  */
#cliente-direccion {
    display: none;
}

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

/* Oculta el label que está justo antes del textarea */
label + #cliente-direccion,
label:has(+ #cliente-direccion),
#cliente-direccion {
    display: none !important;
}

/* -----------------------------------------------     HASTA AQUI  esto BORRAR PARA PEDIR DIRECCION FIN */


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

.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 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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






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

.pieza {
  position: relative;
  width: 210px;
  height: 95px;
  background: #000000;
  border: 2px solid #cfe8ff; /* Celeste muy suave */
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  margin-right: -12px;
}

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

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

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

.numero {
  display: inline-block;
  background: #eaf4ff; /* fondo muy suave */
  color: #0A66C2;
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 50%;
  font-size: 12px;
  margin-bottom: 5px;
}

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

.contenido p {
  margin: 0;
  font-size: 11px;
  color: #666;
}
.proceso-container {
  text-align: center;
  margin: 40px 0 20px 0;
}

.titulo-proceso {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}
@media (max-width: 768px) {

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

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

  .pieza::after {
    display: none;
  }

}




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