/**
 * Carrito Simple - CSS
 */

/*DEPRECADO*/ 
.xnumber{
  display:inline-block;
  font-family: inherit;
  width: 150px;
}

.xnumber__label{
  display:block;
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  opacity: .85;
}

.xnumber__wrap {
    position: relative;
    display: inline-block;
    border: 1px solid #f1f1f1;
    /* border-radius: 12px; */
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    overflow: hidden;
    width: 100%;
    zoom: 0.75;
}

.xnumber__wrap:hover{
  border-color:#008DB9;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.xnumber__wrap:focus-within{
  border-color:#008DB9;
  box-shadow: 0 0 0 4px rgba(0,141,185,.15);
}

.xnumber__input{
  width: 120px;
  padding: 12px 44px;  /* espacio para botones */
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color:#111;
  appearance: textfield; /* firefox */
}

/* Ocultar flechas nativas */
.xnumber__input::-webkit-outer-spin-button,
.xnumber__input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.xnumber__btn{
  position:absolute;
  top:0;
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  color:#1b1b1b;
  transition: background .15s ease, transform .12s ease, opacity .15s ease;
  user-select:none;
}

.xnumber__btn--minus{ left:0; border-right: 1px solid rgba(0,0,0,.06); }
.xnumber__btn--plus{ right:0; border-left: 1px solid rgba(0,0,0,.06); }

.xnumber__btn:hover{
  background: rgba(0,141,185,.08);
}

.xnumber__btn:active{
  transform: scale(.96);
}

.xnumber__btn[disabled]{
  opacity: .35;
  cursor: not-allowed;
}

.xnumber__wrap::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,141,185,0), rgba(0,141,185,.55), rgba(0,141,185,0));
  opacity:0;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}

.xnumber__wrap:focus-within::after{
  opacity:1;
  transform: translateY(0);
}

/*
.cantidad-input-lg {
    width: 100%;
    max-width: 120px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}

.cantidad-input-lg:hover {
    border-color: #008DB9;
    box-shadow: 0 3px 10px rgba(0, 141, 185, 0.15);
}

.cantidad-input-lg:focus {
    outline: none;
    border-color: #008DB9;
    box-shadow: 0 0 0 4px rgba(0, 141, 185, 0.15);
    background: #f9fafb;
}

.cantidad-input-lg::-webkit-outer-spin-button,
.cantidad-input-lg::-webkit-inner-spin-button {
    opacity: 1;
    cursor: pointer;
    width: 35px;
    height: 100%;
}
*/

/* ========================================
   NOTIFICACIONES
   ======================================== */

.carrito-notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    max-width: 400px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.carrito-notificacion.carrito-exito {
    background: #4CAF50;
    color: white;
    border-left: 5px solid #45a049;
}

.carrito-notificacion.carrito-error {
    background: #f44336;
    color: white;
    border-left: 5px solid #da190b;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   AGREGAR AL CARRITO
   ======================================== */

.carrito-simple-agregar {
 display: flex;
 align-items: center;
 gap: 15px;
 margin: 0px 0 2px 0;
 padding-bottom: 15px;
}

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cantidad-control label {
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.cantidad-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.cantidad-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.btn-carrito {
    padding: 10px 20px;
    background: #ff7a00;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.home .btn-carrito {
     margin-top: 0;
}

.btn-carrito:hover:not(:disabled) {
    background: #e56800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.btn-carrito:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-carrito.btn-orange {
    background: #ff7a00;
}

.btn-carrito.btn-orange:hover:not(:disabled) {
    background: #e56800;
}

/* ========================================
   PÁGINA DEL CARRITO
   ======================================== */
.carrito-contenido {
 margin-top: 7%;   
}   
  
.cart-left{
 position: relative; float: left; width: 59%;
}

.cart-right{
 position: relative; float: right; width: 38%;
}

.carrito-simple-wrapper {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.carrito-vacio {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.carrito-vacio p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.btn-volver {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-volver:hover {
    background: #005a87;
}

/* Tabla del carrito */
.carrito-contenido h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.carrito-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 0  0 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.carrito-tabla thead {
    background: #008DB9;
    border-bottom: 2px solid #ddd;
}

.carrito-tabla th {
 padding: 16px;
 text-align: left;
 font-weight: 600;
 color: #fff;
 letter-spacing: 0.4px;
 font-family: "proxima_novasemibold", sans-serif;
}

.carrito-tabla td {
 padding: 6px 14px;
 border-bottom: 1px solid #eee;
 vertical-align: middle;
 font-size: 14px;
 font-family: "proxima_novaregular", sans-serif;
}

.carrito-tabla tbody tr:hover {
    background: #f9f9f9;
}

.carrito-tabla .cantidad-carrito {
    /*width: 72px;
    font-size: 13px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left;*/
}

.btn-eliminar-item {
    padding: 4px 6px !important;
    box-sizing: border-box !important;
    background: #e15353 !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.3s ease;
}

.btn-eliminar-item img {
    width: 18px;
}

.btn-eliminar-item:hover {
 opacity: 0.9;
}

/* Total */
.carrito-total {
    text-align: right;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    margin: 20px 0;
}

.carrito-total h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

/* ========================================
   FORMULARIO
   ======================================== */

.carrito-formulario {
    background: #008DB9;
    padding: 24px 32px 24px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carrito-formulario h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.7em;
    color: #fff;
    font-family: "proxima_novasemibold", sans-serif;
}

.carrito-formulario p {
     color: #fff;
     font-size: 0.95em;
     line-height: 1.25;
     margin-bottom: 5px;
     font-family: "proxima_novaregular", sans-serif;
}

#formulario-carrito .input-orders {
    background: #fff;
    width: 100%;
    border: none !important;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-family: "proxima_novaregular", sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
}

#formulario-carrito .form-group {
    margin-bottom: 0px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input {
    
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-group input.campo-error {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Acciones del formulario */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-enviar {
    flex: 1;
    padding: 14px 20px;
    background: #ff7a00;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enviar:hover:not(:disabled) {
    background: #e56800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.btn-enviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-seguir {
    padding: 14px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-seguir:hover {
    background: #005a87;
    transform: translateY(-2px);
}


/*HOME SHORTCODE*/
.productos-home-contenedor {
    width: 100%;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    font-size: 0; /* Elimina espacios entre inline-block */
}

/* PATRÓN BASE: 25% - 25% - 50% */
.producto-home-item {
    display: inline-block;
    vertical-align: top;
    font-size: 14px;
    position: relative;
    box-sizing: border-box;
    padding: 10px;
}

/* Primer producto pequeño (25%) */
.producto-home-item:nth-child(1) {
    width: 25%;
}

/* Segundo producto pequeño (25%) */
.producto-home-item:nth-child(2) {
    width: 25%;
}

/* Tercer producto grande (50%) */
.producto-home-item:nth-child(3) {
    width: 50%;
}

/* Cuarto producto grande (50%) */
.producto-home-item:nth-child(4) {
    width: 50%;
}

/* Quinto producto pequeño (25%) */
.producto-home-item:nth-child(5) {
    width: 25%;
}

/* Sexto producto pequeño (25%) */
.producto-home-item:nth-child(6) {
    width: 25%;
}

/* Card styling */
.producto-home-card {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 0;
}

.producto-home-imagen-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

/* Altura según tamaño */
.producto-home-item:nth-child(1) .producto-home-imagen-wrapper,
.producto-home-item:nth-child(2) .producto-home-imagen-wrapper,
.producto-home-item:nth-child(5) .producto-home-imagen-wrapper,
.producto-home-item:nth-child(6) .producto-home-imagen-wrapper {
    padding-bottom: 100%; /* Cuadrado */
}

.producto-home-item:nth-child(3) .producto-home-imagen-wrapper,
.producto-home-item:nth-child(4) .producto-home-imagen-wrapper {
    padding-bottom: 47.66%; /* Rectángulo horizontal */
}

.producto-home-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.producto-home-info {
    padding: 12px;
    position: relative;
}

.producto-home-nombre {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    color: #333;
    letter-spacing: 0.5px;
}

.producto-home-descripcion {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    width: 75%;
    max-width: 280px;
    min-width: 150px;
}

/* Botones flotantes (position absolute) */
.producto-home-botones {
    position: relative;
    width: 100%;
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.btn-home-ver,
.btn-home-agregar {
    /*flex: 1;*/
    padding: 0px 10px 2px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.btn-home-ver {
    background: #ff7a00;
    color: white;
}

.btn-home-ver img {
 width: 27px;
 height: auto;
 vertical-align: middle;
 margin-top: 3px;
}

.btn-home-ver:hover {
    background: #e56800;
    text-decoration: none;
    color: white;
}

.btn-home-agregar {
    background: #008DB9;
    color: white;
}


.btn-home-agregar img {
 width: 24px;
 height: auto;
 vertical-align: middle;
 margin-top: 3px;
}

.btn-home-agregar:hover {
 background: #0072a1;
}

.btn-home-agregar.deshabilitado {
    opacity: 0.6;
    pointer-events: none;
}

/* RESPONSIVE TABLET (2 columnas) */
@media (max-width: 1024px) {
    .producto-home-item:nth-child(1) { width: 33.33%; }
    .producto-home-item:nth-child(2) { width: 33.33%; }
    .producto-home-item:nth-child(3) { width: 33.33%; }
    .producto-home-item:nth-child(4) { width: 50%; }
    .producto-home-item:nth-child(5) { width: 50%; }
    .producto-home-item:nth-child(6) { display: none; }
}

/* RESPONSIVE MOBILE (1 columna) */
@media (max-width: 768px) {
    .producto-home-item {
        width: 50% !important;
    }
    
    .producto-home-item:nth-child(n) .producto-home-imagen-wrapper {
        padding-bottom: 100% !important;
    }
}

@media (max-width: 480px) {
    .producto-home-item {
        width: 100% !important;
        padding: 8px;
    }
    
    .producto-home-botones {
        flex-direction: row;
    }
    
    .btn-home-ver,
    .btn-home-agregar {
        flex: 1;
    }
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .carrito-simple-agregar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-carrito {
        width: 100%;
    }
    
    .carrito-tabla {
        font-size: 13px;
    }
    
    .carrito-tabla th,
    .carrito-tabla td {
        padding: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .carrito-notificacion {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */

.carrito-contador-badge {
    display: inline-block;
    background: #ff7a00;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}