/* Renombrado desde form-styles.css: hoja unificada para checkout */
/* Archivo fuente anterior: css/form-styles.css */

.form-login {
    max-width: 600px;
    margin: 0 auto;
}

.floating-label {
    position: relative;
   
}

.floating-label input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.floating-label label {
    display: block;
    margin-bottom: 0.35rem;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}
.floating-label input:focus {
    border-color: #666;
    background: #f8f9fa;
    outline: none;
}

.floating-label input:hover {
    border-color: #bbb;
}

.password-item {
    position: relative;
}

.password-item .toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 3;
}

.button-submit .tf-btn.btn-fill {
    background: #222;
    color: #fff;
    border: 1px solid #222;
    transition: all 0.2s ease;
}
.button-submit .tf-btn.btn-fill:hover {
    background: #fff;
    color: #222;
}

/* ===== Ajustes específicos para formularios: labels fuera y toggle centrado ===== */
.form-login .floating-label {
    margin-bottom: 0; /* menos separación entre campos (ajustado) */
}

.form-login .floating-label input {
    padding: 0.6rem 2.5rem 0.6rem 1rem; /* padding-right aumentado para el icono; vertical reducido */
    box-sizing: border-box;
}

.form-has-password .password-item {
    position: relative;
}

.form-has-password .password-item .toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-login .floating-label input:focus {
    border-color: #3a3a3a;
    box-shadow: 0 0 0 3px rgba(34,34,34,0.06);
    outline: none;
}

.form-login .floating-label label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

/* Contenedor interno para inputs con iconos (ej. ojo) */
.form-login .input-wrap {
    position: relative;
}

.form-login .input-wrap .input-password {
    padding-right: 3rem; /* espacio extra para el icono */
}

.form-login .input-wrap .toggle-password {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    height: 1.6rem;
    width: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.form-login .input-wrap .toggle-password i {
    font-size: 1.1rem;
    line-height: 1;
}

.btn-checkbox.sin-stock {
    opacity: 0.5;         /* se ve más transparente */
    position: relative;
}

/* Opcional: poner una X encima */
.btn-checkbox.sin-stock::after {
    content: "✕";
    color: white;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.precio-wrap{
    position:relative;      /* el contenedor sirve de referencia */
    display:inline-block;
}
.aplicar-todos{
    position:absolute;
    top:100%;               /* justo debajo del input */
    left:0;
    font-size:12px;
    color:blue;
    cursor:pointer;
    margin-top:3px;
   
}

.no-select {
  user-select: none;        /* Standard */
  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
}

/* ==================== Estilos para mensajes de error en formularios ==================== */
.error-message,
#error,
#error10,
#error101 {
    display: block; /* ocupan espacio cuando son visibles; JS controla visibility */
    visibility: hidden; /* por defecto ocultos; hideshow() los mostrará */
    background: #fff5f5;             /* fondo suave rojo claro */
    border: 1px solid #ffd0d0;       /* borde rosa claro */
    color: #9b1c1c;                  /* texto rojo oscuro */
    padding: 0.5rem 0.8rem;          /* espacio interior reducido */
    border-radius: 8px;             /* esquinas suaves */
    margin-top: 0.45rem;            /* separación respecto al input reducida */
    font-size: 0.95rem;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(155,28,28,0.05);
	text-align:center;
}


/* Variante compacta para mensajes inline junto al campo */
.error-message.inline {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.88rem;
}

/* Ajustes responsivos: textos más pequeños en móviles */
@media (max-width: 480px) {
    .error-message, #error, #error10, #error101 {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Spinner reutilizable para botones de formulario (sin imagen externa) */
.inline-spinner {
  box-sizing: border-box;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  -webkit-animation: spin 0.8s linear infinite;
          animation: spin 0.8s linear infinite;
}

/* Enlace de política dentro de formularios: color y negrita para destacarlo */
.privacy-link {
    color: #1a73e8; /* azul destacado */
    font-weight: 700; /* negrita */
    text-decoration: underline;
}
.privacy-link:hover, .privacy-link:focus {
    color: #0b53b8;
    text-decoration: none;
}

/* ==================== Estilos para formularios de checkout - Guapas ==================== */

/* Contenedor principal del formulario */
.info-box {
    background-color: #f5f5f5;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 12px 18px 10px;
    margin-bottom: 0;
    gap:5px !important;
}

/* Contenedor de formularios */
.shipping-box {
    margin-bottom: 0;
}

/* Título del formulario */
.tf-page-checkout .wrap h5.title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    margin-top: -20px; /* alinear con resumen (evitar margen superior por defecto de h5) */
}

.tf-page-checkout .wrap .title-help {
    font-size: 13px;
    color: #6b7280; /* gris medio sutil */
    margin: -2px 0 12px;
}

/* Grupos de formulario */
.info-box .form-group {
    margin-bottom: 2px;
    position: relative;
}

/* Etiquetas */
.info-box label {
    display: block;
    margin-bottom: 3px;
    font-weight: 400;
    color: #6c757d; /* antes #333, ahora un gris suave para mayor armonía */
    font-size: 14px;
    line-height: 1.2;
}

/* Etiquetas sutiles también para shipping-box (checkout pasos 1/2/3) */
.shipping-box label {
    display: block;
    margin-bottom: 3px;
    font-weight: 400;
    color: #6c757d;
    font-size: 14px; /* similar a .form-login (.9rem) */
    line-height: 1.2;
}

/* Campos de entrada */
.info-box .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    height: 45px;
    line-height: 1.4;
}

/* Campos de selección */
.info-box select.form-control {
    height: 45px;
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23212529' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Campos de selección en el formulario principal (Paso 1) */
.tf-page-checkout .wrap select.form-control {
    height: 45px;
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23212529' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* ====== Efecto de inputs como Registro aplicado al Checkout (Paso 1/2/3) ====== */
.tf-page-checkout .wrap .form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff; /* usar background-color para no resetear background-image de selects */
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: 45px;
}
.tf-page-checkout .wrap .form-control:hover {
    border-color: #bbb;
}
.tf-page-checkout .wrap .form-control:focus {
    border-color: #3a3a3a;
    background-color: #f8f9fa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34,34,34,0.06);
}
/* Estado inválido coherente con el nuevo estilo */
.tf-page-checkout .wrap .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.15);
}

/* Focus en campos */
.info-box .form-control:focus {
    border-color: #555555;
    outline: none;
    box-shadow: 0 0 0 1px rgba(85, 85, 85, 0.4);
}

/* Campos inválidos */
.info-box .form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.info-box .form-control:focus.is-invalid {
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.5);
    border-color: #dc3545;
}

.info-box .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 12px;
    color: #dc3545;
}

/* Áreas de texto */
.info-box textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Botones y navegación */
.checkout-nav-buttons {
    margin-top: 15px;
    padding: 0 0px;
}

.link-back {
    color: #666;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    padding: 8px 0;
}

.link-back:hover {
    color: #333;
    text-decoration: none;
}

/* Botón Continuar */
.button-submit .tf-btn {
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    height: 45px;
}

.button-submit .tf-btn:hover {
    background-color: #c02b2b; /* tono más oscuro del primary */
    border-color: #c02b2b;
}

/* Variante gris para Confirmar/Finalizar pedido */
.button-submit .btn-gray {
    background-color: #6c757d;
    border-color: #6c757d;
}
.button-submit .btn-gray:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Auth CTA unificado */
.auth-cta { gap: 8px; }
.auth-cta-title { font-weight: 600; }
.auth-cta-links .sep { margin: 0 6px; color: #999; }

.auth-cta-left { display: flex; flex-direction: column; }
.auth-cta-benefits { display:none; }

/* Tooltip de ayuda junto al título de auth */
.help-tooltip { display: inline-flex; align-items: center; margin-left: 8px; color: #6b7280; position: relative; cursor: help; line-height: 1; }
.help-tooltip svg { display: block; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.05)); }
.help-tooltip:hover { color: #4b5563; }
.help-tooltip:focus { outline: none; }
.help-tooltip:focus-visible { outline: 2px solid rgba(75,85,99,0.35); border-radius: 4px; }
.tooltip-content {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    max-width: 280px;
    background: #222;
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all .16s ease;
    z-index: 20;
}
.tooltip-content::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 8px;
    width: 10px;
    height: 10px;
    background: #222;
    transform: rotate(45deg);
}
.help-tooltip:hover .tooltip-content,
.help-tooltip:focus .tooltip-content,
.help-tooltip:focus-within .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tarjeta con sombreado sutil para contenedores de checkout */
.soft-shadow {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Estilos para radio buttons personalizados */
.radio-custom {
    position: relative;
    margin-bottom: 15px;
}

.shipping-option {
    margin-bottom: 1rem;
}

.radio-custom input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label {
    display: block;
    background: #f8f9fa;
    padding: 15px;
    border: 2px solid #ececec; /* borde más sutil por defecto */
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
}

.radio-custom input[type="radio"]:checked + .radio-label {
    border-color: var(--main);
    box-shadow: 0 0 0 1px var(--main);
}

.custom-radio-button {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #bdbdbd; /* gris suave por defecto */
    background-color: #fff;
    position: relative;
    flex-shrink: 0;
    margin-right: 15px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.radio-custom input[type="radio"]:checked + .radio-label .custom-radio-button:after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--main);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-custom input[type="radio"]:checked + .radio-label .custom-radio-button {
    border-color: var(--main);
}

/* Estilos para opciones de envío */
.option-title {
    font-weight: 600;
    font-size: 16px;
}

.option-description {
    color: #6c757d;
    font-size: 14px;
    margin-top: 2px;
}

.option-price {
    font-weight: 600;
    font-size: 16px;
}

/* ===== Resumen de pedido (carro-resumen) ===== */
.border-top-light {
    border-top: 1px solid #f0f0f0;
    background-color: transparent;
}

.cart-summary {
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    border-color: #e6e6e6;
}

.cart-item { align-items: flex-start; }

.cart-item:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* Separadores sutiles entre productos de la lista */
.cart-items .cart-item { border-bottom: 1px solid #d9d9d9; }
.cart-items .cart-item:last-child { border-bottom: none; }

.item-image {
    flex: 0 0 60px;
    margin-right: 15px !important;
}

.item-details {
    padding-top: 2px;
    flex: 1;
    min-width: 0;
}

.item-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 5px !important;
}

.item-attributes {
    font-size: 12px;
    margin-bottom: 8px !important;
}

/* Alinear 'cantidad x precio' con el mismo arranque que título/opciones */
.cart-items .item-meta { padding-left: 0; margin-left: 0; display: flex; align-items: center; }
.cart-items .item-quantity.badge-light {
    padding: 3px 6px; /* menos padding para no empujar visualmente */
    line-height: 1.1;
    margin-left: -4px; /* compensación visual para alinear con el texto de arriba */
}
.cart-items .item-price { margin-right: 0; line-height: 1.2; align-self: center; }

.cart-totals {
    font-size: 15px;
    padding: 12px 20px !important;
}

.total-line {
    font-size: 18px;
    font-weight: 600;
    border-top: 1px solid #e6e6e6; /* separador antes del total para más jerarquía */
}

.badge-light {
    background-color: #f8f9fa;
    color: #6c757d;
    font-weight: normal;
    padding: 5px 8px;
}

/* Alinear importes con cifras tabulares para que no “salten” */
.cart-totals .amount,
.cart-item .item-price,
.cart-item .item-quantity {
    font-variant-numeric: tabular-nums;
    -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
            font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Cabecera del resumen con contador */
.title-row .items-count {
    font-size: 11px;
    color: #555;
    background: #ffffff; /* resalta sobre fondo gris */
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    padding: 3px 7px;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* (Revert) Sin borde/padding extra en el título para evitar wraps innecesarios */
/* Alinear la cabecera del resumen con el padding del contenido */
.box-order .title-row { padding: 2px 16px 10px; }

/* Limitar crecimiento del resumen en checkout: lista con scroll y totales visibles */
@media (min-width: 992px) {
    .checkout-page .box-order { position: sticky; top: 90px; }
    .checkout-page .cart-summary { display: flex; flex-direction: column; }
    .checkout-page .cart-items { max-height: 360px; overflow-y: auto; padding-right: 6px; }
    .checkout-page .cart-totals { flex-shrink: 0; }
    /* Scrollbar sutil */
    .checkout-page .cart-items::-webkit-scrollbar { width: 6px; }
    .checkout-page .cart-items::-webkit-scrollbar-track { background: transparent; }
    .checkout-page .cart-items::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.15); border-radius: 4px; }
}

/* Estilos para el paso a paso del checkout */
.checkout-steps {
    margin-bottom: 2rem;
}

/* Header compacto con SSL */
#header2.header-secure { padding: 10px 0; border-bottom: 1px solid #eee; background: #fff; }
#header2 .logo { height: 36px; width: auto; }
.secure-badge { color: #16a34a; font-weight: 600; font-size: 14px; }
.secure-text { color: #374151; font-weight: 600; font-size: 14px; }
.secure-badge svg { color: #16a34a; }
@media (max-width: 575px) {
    .secure-text { font-size: 13px; font-weight: 600; }
}

.step-indicator {
    position: relative;
}

/* Línea conectora entre los círculos */
.step-indicator::after {
    content: '';
    position: absolute;
    top: 14px; /* Centrado verticalmente con los círculos */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step-item {
    color: #6c757d;
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 30px; /* Espacio para el círculo arriba del texto */
}

.step-item::before {
    content: attr(data-step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background-color: #adb5bd; /* Gris para pasos inactivos */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
}

.step-item.active {
    color: #212529;
    font-weight: 600;
}

.step-item.active::before {
    background-color: #212529; /* Negro para paso activo */
    box-shadow: 0 0 0 2px rgba(33, 37, 41, 0.25);
}

.step-item.completed {
    color: #212529;
}

.step-item.completed::before {
    background-color: #212529; /* Negro para pasos completados */
}

/* Estilos para dirección alternativa */
#direccion_alternativa_fields {
    background-color: #f5f5f5;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 15px 18px 12px;
    margin-top: 15px;
}

#direccion_alternativa_fields .form-control {
    height: 45px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

#direccion_alternativa_fields label {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 3px;
    display: block;
    color: #6c757d;
}

#direccion_alternativa_fields select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23212529' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Estilos para el checkbox */
.form-check {
    position: relative;
    display: block;
    padding-left: 1.25rem;
}

.form-check-input {
    position: absolute;
    margin-top: 0.0rem;
    margin-left: -1.25rem !important;
}

.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
    color: #6c757d;
    font-weight: 400;
}

/* Estilos para datos de facturación */
#datos_facturacion_fields {
    padding: 15px 0 5px;
    margin-top: 10px;
}

/* Estilo para separación entre secciones */
.tf-page-checkout .wrap {
    margin-bottom: 20px;
}

.tf-page-checkout hr {
    border-top: 1px solid #dee2e6;
    margin: 1rem 0;
}

#datos_facturacion_fields .form-control,
.wrap .form-control {
    height: 45px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

#datos_facturacion_fields label {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 3px;
    display: block;
    color: #6c757d;
}

#datos_facturacion_fields select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23212529' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Línea vertical separadora en checkout */
.checkout-main .line-separation {
    width: 1px;
    height: 100%;
    background-color: var(--line, #e6e6e6);
    margin: 0 auto;
}

/* Responsive para checkout */
@media (max-width: 991px) {
    /* Asegurarnos de que en tablets y móviles el resumen de carro esté debajo */
    .col-xl-1.d-none {
        display: none !important;
    }
    
    /* Añadir algo de espacio entre formulario y resumen */
    .col-xl-5 {
        margin-top: 30px;
    }
    
    /* Ocultar la línea separadora en mobile */
    .line-separation {
        display: none;
    }
}

@media (max-width: 767px) {
    .checkout-nav-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .button-submit {
        width: 100%;
    }
}

/* Estilos para el footer con logo Siarweb */
.footer-bottom-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom-wrap .right {
    text-align: right;
}

.footer-develop .siarweb-link {
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-develop .siarweb-link:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .footer-bottom-wrap {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-wrap .right {
        margin-top: 10px;
        text-align: center;
    }
}

/* Estilos para el carrito vacío */
.empty-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.empty-cart-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--main);
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.empty-cart-message {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 35px;
    max-width: 500px;
    line-height: 1.6;
}

.empty-cart-button {
    background-color: #666666;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.3px;
}

.empty-cart-button:hover {
    background-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    color: white;
}

@media (max-width: 767px) {
    .empty-cart-container {
        padding: 60px 20px;
        margin: 20px 0;
    }
    
    .empty-cart-title {
        font-size: 28px;
    }
    
    .empty-cart-message {
        font-size: 16px;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .empty-cart-button {
        padding: 12px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }
}

/* Ajuste adicional para móviles más pequeños */
@media (max-width: 480px) {
    .empty-cart-container {
        padding: 45px 15px;
    }
    
    .empty-cart-title {
        font-size: 24px;
    }
    
    .empty-cart-message {
        font-size: 15px;
    }
}

.footer .text-caption-1 {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}


.tf-btn.btn-white.has-border:hover {
    background: #f0f0f0;
    color: #222;
    border-color: #222;
}   

/* Estilo específico para el botón "Ir al carrito" en el carrito lateral */
.tf-mini-cart-view-checkout .tf-btn.btn-white.has-border:hover {
    color: var(--primary) !important; 
    background-color: var(--white) !important;
    border-color: var(--primary) !important;
}

.tf-mini-cart-view-checkout .tf-btn.btn-white.has-border:hover .text-btn-uppercase {
    color: var(--primary) !important;
}

/* Evitar que el efecto de fondo cubra el texto */
.tf-mini-cart-view-checkout .tf-btn.btn-white.has-border::after {
    opacity: 0.1 !important;
    background-color: transparent !important;
}

.info-summary {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    margin-right: -16px;
}

/* Pedido: quitar fondo gris del bloque de confirmación para mayor limpieza visual */
.pedido-page .info-summary { background: transparent; padding: 0; }

/* ========== Navegación de secciones (Paso 1) y divisores ========== */
/* Encabezado sobrio de sección (Paso 1) */
.section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 8px; /* un poco más de aire cuando hay legend */
}
/* solo dibujamos línea a la derecha para que el texto quede a la izquierda */
.section-heading::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #ececec;
}
.section-heading::before { content: none; }
.section-heading span {
   
    font-weight: 400;
    color: #8f5a3e; /* gris sutil */
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.2;
    padding-right: 8px;

    font-size: 9px;    
}

/* Cuando no hay texto (solo queremos una línea divisoria) */
.section-heading:empty {
    display: block;
    height: 1px;
    background: #ececec;
    margin: 8px 0 6px;
}
.section-heading:empty::before,
.section-heading:empty::after {
    content: none;
}

/* Anclas con offset para scroll y header fijo */
.section-anchor { scroll-margin-top: 100px; }


  /* Asterisco rojo para campos obligatorios */
      .req { color: #d32f2f; margin-left: 4px; font-weight: 600; }
      /* Aside derecho prolijo */
      .register-aside { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 24px; }
      .register-aside h4 { margin-bottom: 12px; }
      .register-aside p { margin-bottom: 16px; }
      .register-aside .tf-btn { width: 100%; padding: 12px 16px; font-weight: 600; border-radius: 6px; }
      /* Separador vertical como paso1 */
      .checkout-main .line-separation { width: 1px; height: 100%; background: #e9ecef; margin: 0 auto; }
      /* Botón mitad de ancho en desktop, full en mobile */
      .checkout-nav-buttons .button-submit.half { flex: 0 0 50%; max-width: 50%; }
      @media (max-width: 767.98px) {
        .checkout-nav-buttons .button-submit.half { flex: 0 0 100%; max-width: 100%; }
      }
      /* Centrado del icono de ojo en passwords */
      .password-item .input-wrap { position: relative; }
      .password-item .input-wrap .toggle-password { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); cursor: pointer; }
      .password-item .input-wrap .input-password { padding-right: 44px; }
      /* Fix visual para selects (descendentes como 'g' no se corten) */
      .checkout-main select.form-control { line-height: 1.25; padding-top: 10px; padding-bottom: 10px; height: auto; min-height: 44px; }