/* ============================================================
   EXOGENICS - WooCommerce Dark Theme & Legibility Styles
   ============================================================ */

/* ==========================================================
   0. PANELES CONTENEDORES - CHECKOUT Y CARRITO
   ========================================================== */

/* --- Checkout: columna IZQUIERDA (billing, shipping, payment) – fondo CLARO card --- */
.woocommerce-checkout .e-checkout__column-start > div,
.woocommerce-checkout .e-checkout__billing-address,
.woocommerce-checkout .e-checkout__shipping-address,
.woocommerce-checkout .e-checkout__additional-info,
.woocommerce-checkout .e-checkout__payment,
.woocommerce-checkout .col2-set,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #payment {
    background: #dfe7f0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    padding: 30px 28px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* --- WooCommerce Blocks Checkout: Formulario IZQUIERDO (Contact, Billing, Payments) --- */
form.wc-block-components-form.wc-block-checkout__form,
.wc-block-checkout__form {
    background-color: #0e1322 !important; /* Fondo oscuro similar al de la página */
    padding: 30px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(61, 161, 202, 0.4) !important; /* Borde celeste como el botón 'Inscribirse' */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 15px rgba(61, 161, 202, 0.1) !important; /* Brillo sutil */
}

@media (max-width: 768px) {
    form.wc-block-components-form.wc-block-checkout__form,
    .wc-block-checkout__form {
        padding: 20px 15px !important;
    }
}

/* Forzar textos legibles (claros) dentro del formulario de bloques oscuro */
.wc-block-checkout__form,
.wc-block-checkout__form p,
.wc-block-checkout__form span,
.wc-block-checkout__form li,
.wc-block-checkout__form label,
.wc-block-checkout__form legend,
.wc-block-checkout__form .wc-block-components-checkout-step__title,
.wc-block-checkout__form .wc-block-components-radio-control-item__label,
.wc-block-checkout__form .wc-block-components-checkbox-control__label,
.wc-block-checkout__form .wc-block-components-checkbox-control__label span,
.wc-block-checkout__form .wc-block-components-address-form__email-input,
.wc-block-checkout__form .wc-block-components-address-form__email-input label {
    color: #cbd5e1 !important;
}

.wc-block-checkout__form h2,
.wc-block-checkout__form h3,
.wc-block-checkout__form .wc-block-components-title {
    color: #ffffff !important;
}

/* Estilos de inputs (cajas de texto) dentro del formulario de bloques */
.wc-block-checkout__form input[type="text"],
.wc-block-checkout__form input[type="email"],
.wc-block-checkout__form input[type="tel"],
.wc-block-checkout__form input[type="number"],
.wc-block-checkout__form textarea,
.wc-block-checkout__form select,
.wc-block-checkout__form .wc-block-components-text-input input,
.wc-block-checkout__form .wc-block-components-textarea textarea,
.wc-block-checkout__form .wc-block-components-select select {
    background-color: #161c2d !important;
    background: #161c2d !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    /* Se remueve el padding forzado para respetar el espaciado nativo de las etiquetas flotantes */
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Focus state de los inputs de bloques */
.wc-block-checkout__form input:focus,
.wc-block-checkout__form textarea:focus,
.wc-block-checkout__form select:focus,
.wc-block-checkout__form .wc-block-components-text-input input:focus,
.wc-block-checkout__form .wc-block-components-textarea textarea:focus,
.wc-block-checkout__form .wc-block-components-select select:focus {
    border-color: #3da1ca !important;
    box-shadow: 0 0 8px rgba(61, 161, 202, 0.3) !important;
    background-color: #1b2238 !important;
    outline: none !important;
}

/* Forzar que el autocompletado del navegador (autofill) mantenga el fondo oscuro y texto blanco */
.wc-block-checkout__form input:-webkit-autofill,
.wc-block-checkout__form input:-webkit-autofill:hover,
.wc-block-checkout__form input:-webkit-autofill:focus,
.wc-block-checkout__form textarea:-webkit-autofill,
.wc-block-checkout__form textarea:-webkit-autofill:hover,
.wc-block-checkout__form textarea:-webkit-autofill:focus,
.wc-block-checkout__form select:-webkit-autofill,
.wc-block-checkout__form select:-webkit-autofill:hover,
.wc-block-checkout__form select:-webkit-autofill:focus,
.wc-block-checkout__form .wc-block-components-text-input input:-webkit-autofill,
.wc-block-checkout__form .wc-block-components-textarea textarea:-webkit-autofill,
.wc-block-checkout__form .wc-block-components-select select:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #161c2d inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Forzar legibilidad de placeholders en inputs oscuros */
.wc-block-checkout__form input::placeholder,
.wc-block-checkout__form textarea::placeholder,
.wc-block-checkout__form .wc-block-components-text-input input::placeholder,
.wc-block-checkout__form .wc-block-components-textarea textarea::placeholder,
.wc-block-checkout__form input::-webkit-input-placeholder,
.wc-block-checkout__form textarea::-webkit-input-placeholder,
.wc-block-checkout__form .wc-block-components-text-input input::-webkit-input-placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Estilo para los selects y opciones del selector de país/estado en bloques */
.wc-block-checkout__form .wc-block-components-select select option {
    background-color: #0e1322 !important;
    color: #ffffff !important;
}

/* Forzar textos oscuros en la columna izquierda clara */
.woocommerce-checkout .e-checkout__column-start,
.woocommerce-checkout .e-checkout__column-start p,
.woocommerce-checkout .e-checkout__column-start span,
.woocommerce-checkout .e-checkout__column-start li,
.woocommerce-checkout .e-checkout__column-start td,
.woocommerce-checkout .e-checkout__column-start th,
.woocommerce-checkout .e-checkout__column-start label,
.woocommerce-checkout .e-checkout__column-start div:not(.payment_box),
.woocommerce-checkout .col2-set,
.woocommerce-checkout .col2-set *,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #customer_details *,
.woocommerce-checkout #payment,
.woocommerce-checkout #payment ul.payment_methods li,
.woocommerce-checkout #payment ul.payment_methods li label {
    color: #1e293b !important;
}

/* Headings en la columna izquierda clara */
.woocommerce-checkout .e-checkout__column-start h2,
.woocommerce-checkout .e-checkout__column-start h3,
.woocommerce-checkout .col2-set h3,
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #payment h3 {
    color: #0f172a !important;
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    font-weight: 700 !important;
}

/* Links en la columna izquierda clara */
.woocommerce-checkout .e-checkout__column-start a,
.woocommerce-checkout .col2-set a,
.woocommerce-checkout #customer_details a {
    color: #105ba7 !important;
}
.woocommerce-checkout .e-checkout__column-start a:hover,
.woocommerce-checkout .col2-set a:hover,
.woocommerce-checkout #customer_details a:hover {
    color: #3da1ca !important;
}

/* Inputs, textareas y selects en la columna izquierda clara */
.woocommerce-checkout .e-checkout__column-start input.input-text,
.woocommerce-checkout .e-checkout__column-start textarea,
.woocommerce-checkout .e-checkout__column-start select,
.woocommerce-checkout .col2-set input.input-text,
.woocommerce-checkout .col2-set textarea,
.woocommerce-checkout .col2-set select,
.woocommerce-checkout #customer_details input.input-text,
.woocommerce-checkout #customer_details textarea,
.woocommerce-checkout #customer_details select {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    border-radius: 8px !important;
}

.woocommerce-checkout .e-checkout__column-start input.input-text::placeholder,
.woocommerce-checkout .e-checkout__column-start textarea::placeholder,
.woocommerce-checkout .col2-set input.input-text::placeholder,
.woocommerce-checkout .col2-set textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

/* Select2 dropdown en la columna clara */
.woocommerce-checkout .e-checkout__column-start .select2-container--default .select2-selection--single,
.woocommerce-checkout .col2-set .select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    height: 48px !important;
}
.woocommerce-checkout .e-checkout__column-start .select2-container--default .select2-selection--single .select2-selection__rendered,
.woocommerce-checkout .col2-set .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important;
    line-height: 46px !important;
}

/* Opciones de pago (#payment) dentro de la columna clara */
.woocommerce-checkout #payment {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
    padding: 20px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #334155 !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: rgba(0, 0, 0, 0.04) !important;
}

/* --- Checkout: columna DERECHA (order review / Resumen del pedido) – fondo OSCURO --- */
.woocommerce-checkout .e-checkout__column-end,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout #order_review {
    background: rgba(20, 30, 55, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 30px 28px !important;
    margin-bottom: 30px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}

.woocommerce-checkout .e-checkout__column-end,
.woocommerce-checkout .e-checkout__column-end p,
.woocommerce-checkout .e-checkout__column-end span,
.woocommerce-checkout .e-checkout__column-end li,
.woocommerce-checkout .e-checkout__column-end td,
.woocommerce-checkout .e-checkout__column-end th,
.woocommerce-checkout .e-checkout__column-end label,
.woocommerce-checkout .e-checkout__column-end .amount,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-checkout-review-order p,
.woocommerce-checkout .woocommerce-checkout-review-order span,
.woocommerce-checkout .woocommerce-checkout-review-order td,
.woocommerce-checkout .woocommerce-checkout-review-order th,
.woocommerce-checkout .woocommerce-checkout-review-order .amount {
    color: #cbd5e1 !important;
}

.woocommerce-checkout .e-checkout__column-end h2,
.woocommerce-checkout .e-checkout__column-end h3,
.woocommerce-checkout .woocommerce-checkout-review-order h2,
.woocommerce-checkout .woocommerce-checkout-review-order h3,
.woocommerce-checkout #order_review_heading {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Tabla de resumen del pedido (derecha) oscura */
.woocommerce-checkout .e-checkout__column-end table.shop_table,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.woocommerce-checkout .e-checkout__column-end table.shop_table th,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
}

.woocommerce-checkout .e-checkout__column-end table.shop_table td,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table td {
    color: #cbd5e1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.woocommerce-checkout .e-checkout__column-end table.shop_table tfoot th,
.woocommerce-checkout .e-checkout__column-end table.shop_table tfoot td,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table tfoot td {
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* --- Cart Totals – fondo OSCURO en carrito --- */
.woocommerce-cart .cart_totals {
    background: rgba(20, 30, 55, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}
.woocommerce-cart .cart_totals,
.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td,
.woocommerce-cart .cart_totals span,
.woocommerce-cart .cart_totals .amount {
    color: #cbd5e1 !important;
}
.woocommerce-cart .cart_totals h2 {
    color: #ffffff !important;
}

/* --- Cart table wrapper – oscuro --- */
.woocommerce-cart .woocommerce-cart-form {
    background: rgba(20, 30, 55, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;
}

/* --- Página de Producto: summary --- */
.woocommerce div.product div.summary {
    background: rgba(20, 30, 55, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* --- Página de Producto: tabs de descripción/reviews --- */
.woocommerce div.product .woocommerce-tabs {
    background: rgba(20, 30, 55, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 28px;
    margin-top: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ==========================================================
   1. Tipografía global WooCommerce
   ========================================================== */
.woocommerce,
.woocommerce-page,
.woocommerce-order-received {
    color: #cbd5e1 !important;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce h4,
.woocommerce h5,
.woocommerce h6,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3,
.woocommerce-checkout h3,
.woocommerce-order-received h2,
.woocommerce-order-received h3 {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
}

.woocommerce a,
.woocommerce-page a {
    color: #3da1ca !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce a:hover,
.woocommerce-page a:hover {
    color: #5ebfe0 !important;
}

/* ==========================================================
   2. Tablas de tienda (Cart, Checkout, Order Received)
   ========================================================== */
.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: #cbd5e1 !important;
    overflow: hidden;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.woocommerce table.shop_table th,
.woocommerce-page table.shop_table th {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 15px 20px !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-top: none !important;
}

.woocommerce table.shop_table td,
.woocommerce-page table.shop_table td {
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-bottom: none !important;
    padding: 15px 20px !important;
    color: #cbd5e1 !important;
    vertical-align: middle;
}

.woocommerce table.shop_table tfoot th,
.woocommerce-page table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td,
.woocommerce-page table.shop_table tfoot td {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: transparent !important;
    color: #ffffff !important;
}

/* ==========================================================
   3. Campos de Formulario – Dentro de los paneles claros
   ========================================================== */
.woocommerce-checkout label,
.woocommerce-page label {
    color: #e2e8f0 !important;
    font-weight: 500;
    margin-bottom: 6px;
    display: inline-block;
    font-size: 0.9rem;
}

/* --- Inputs y textareas --- */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-page .form-row input.input-text,
.woocommerce-page .form-row textarea,
.woocommerce-page select,
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
    background-color: rgba(10, 15, 30, 0.6) !important;
    background: rgba(10, 15, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.95rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* --- Focus state --- */
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-page .form-row input.input-text:focus,
.woocommerce-page .form-row textarea:focus,
.woocommerce input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
    border-color: #3da1ca !important;
    box-shadow: 0 0 0 3px rgba(61, 161, 202, 0.15), 0 0 10px rgba(61, 161, 202, 0.2) !important;
    outline: none !important;
    background-color: rgba(10, 15, 30, 0.8) !important;
}

/* --- Placeholders visibles --- */
.woocommerce input.input-text::placeholder,
.woocommerce textarea::placeholder,
.woocommerce-checkout input.input-text::placeholder,
.woocommerce-checkout textarea::placeholder,
.woocommerce-page input.input-text::placeholder,
.woocommerce-page textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.woocommerce input.input-text::-webkit-input-placeholder,
.woocommerce textarea::-webkit-input-placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.woocommerce input.input-text:-ms-input-placeholder,
.woocommerce textarea:-ms-input-placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* --- Select nativo (options legibles) --- */
.woocommerce select option,
.woocommerce-checkout select option,
.woocommerce-page select option {
    background-color: #141e37 !important;
    color: #e2e8f0 !important;
    padding: 10px !important;
}

/* ==========================================================
   4. Select2 (dropdowns de país, estado, etc.)
   ========================================================== */
.select2-container--default .select2-selection--single {
    background-color: rgba(10, 15, 30, 0.6) !important;
    background: rgba(10, 15, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    height: 48px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    line-height: 46px !important;
    padding-left: 16px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.select2-dropdown {
    background-color: #141e37 !important;
    background: #141e37 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    z-index: 99999;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: rgba(10, 15, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
}

.select2-container--default .select2-results__option {
    color: #cbd5e1 !important;
    background-color: transparent !important;
    padding: 10px 14px !important;
    transition: background-color 0.15s ease;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(61, 161, 202, 0.15) !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3da1ca !important;
    color: #ffffff !important;
}

/* ==========================================================
   5. Caja de método de pago (Checkout)
   ========================================================== */
.woocommerce-checkout #payment,
.woocommerce-page #payment {
    background: rgba(20, 30, 55, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 20px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-page #payment ul.payment_methods {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 20px !important;
    list-style: none !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    color: #e2e8f0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    color: #e2e8f0 !important;
    cursor: pointer;
}

.woocommerce-checkout #payment div.payment_box,
.woocommerce-page #payment div.payment_box {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.woocommerce-checkout #payment div.payment_box::before,
.woocommerce-page #payment div.payment_box::before {
    border-bottom-color: rgba(255, 255, 255, 0.04) !important;
    top: -1em !important;
}

.woocommerce-checkout #payment div.place-order {
    padding: 20px !important;
}

/* ==========================================================
   6. Página de confirmación (Order Received / Thank You)
   ========================================================== */
.woocommerce-order-received .woocommerce-notice--success {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    color: #10b981 !important;
    margin-bottom: 30px !important;
}

ul.woocommerce-order-overview {
    background: rgba(20, 30, 55, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none !important;
    margin: 0 0 40px 0 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

ul.woocommerce-order-overview li {
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-right: 20px !important;
    margin-right: 0 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    color: #94a3b8 !important;
    flex-grow: 1;
}

ul.woocommerce-order-overview li:last-child {
    border-right: none !important;
    padding-right: 0 !important;
}

ul.woocommerce-order-overview li strong {
    display: block;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    text-transform: none;
    margin-top: 6px;
    word-break: break-all;
}

/* ==========================================================
   7. Botones (global WooCommerce)
   ========================================================== */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce-page #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button {
    background: linear-gradient(135deg, #3da1ca, #105ba7) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(61, 161, 202, 0.3) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce-page #respond input#submit:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover {
    background: linear-gradient(135deg, #5ebfe0, #1a75d2) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 161, 202, 0.45) !important;
    color: #ffffff !important;
}

/* Botón disabled */
.woocommerce button.button:disabled,
.woocommerce button.button[disabled],
.woocommerce-page button.button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
    transform: none !important;
}

/* ==========================================================
   8. Alertas y mensajes
   ========================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: rgba(20, 30, 55, 0.9) !important;
    border-top: 3px solid #3da1ca !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    margin-bottom: 25px !important;
    list-style: none !important;
}

.woocommerce-error {
    border-top-color: #ef4444 !important;
}

.woocommerce-message {
    border-top-color: #10b981 !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    color: #3da1ca !important;
}

.woocommerce-error::before {
    color: #ef4444 !important;
}

.woocommerce-message .button,
.woocommerce-info .button {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    box-shadow: none !important;
    border-radius: 6px !important;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
    background: #3da1ca !important;
    transform: none;
}

/* ==========================================================
   9. Producto individual
   ========================================================== */
.woocommerce div.product,
.woocommerce-page div.product {
    clear: both !important;
    overflow: hidden !important;
}

.woocommerce div.product .product_title,
.woocommerce-page div.product .product_title {
    color: #ffffff !important;
    font-size: 2.25rem !important;
    margin-bottom: 15px !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-page div.product p.price,
.woocommerce-page div.product span.price {
    color: #3da1ca !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce-page div.product .woocommerce-product-details__short-description {
    color: #cbd5e1 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 25px !important;
}

.woocommerce div.product .product_meta,
.woocommerce-page div.product .product_meta {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 15px !important;
    margin-top: 25px !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}

.woocommerce div.product .product_meta span,
.woocommerce-page div.product .product_meta span {
    display: block;
    margin-bottom: 5px;
}

.woocommerce div.product .product_meta a,
.woocommerce-page div.product .product_meta a {
    color: #3da1ca !important;
}

/* Tabs de producto (descripción / reviews) */
.woocommerce div.product .woocommerce-tabs ul.tabs,
.woocommerce-page div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    background: transparent !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce-page div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-right: 25px !important;
    padding: 10px 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a,
.woocommerce-page div.product .woocommerce-tabs ul.tabs li a {
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border-bottom: 2px solid transparent;
    padding-bottom: 10px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce-page div.product .woocommerce-tabs ul.tabs li.active a {
    color: #3da1ca !important;
    border-bottom-color: #3da1ca !important;
}

.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-page div.product .woocommerce-tabs .panel {
    color: #cbd5e1 !important;
    line-height: 1.7 !important;
}

/* Input de cantidad en producto */
.woocommerce div.product form.cart .quantity input,
.woocommerce-page div.product form.cart .quantity input {
    background-color: rgba(10, 15, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    height: 46px !important;
    padding: 5px 10px !important;
    font-weight: 600 !important;
    text-align: center;
}

/* Imagen del producto */
.woocommerce div.product div.images {
    border-radius: 16px;
    overflow: hidden;
}

.woocommerce div.product div.images img {
    border-radius: 12px;
}

/* ==========================================================
   10. Checkout – refinamientos de layout
   ========================================================== */
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    padding: 0 10px;
}

.woocommerce-checkout-review-order-table th.product-name {
    width: 60% !important;
}

.woocommerce-checkout .woocommerce-additional-fields h3 {
    margin-top: 20px;
}

/* ==========================================================
   11. Breadcrumbs
   ========================================================== */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
    color: #94a3b8 !important;
    font-size: 0.85rem;
    margin-bottom: 25px;
    padding: 12px 0;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #3da1ca !important;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: #5ebfe0 !important;
}

/* ==========================================================
   12. Producto – Galería y Related Products
   ========================================================== */
.woocommerce .related.products,
.woocommerce .up-sells {
    margin-top: 50px !important;
}

.woocommerce .related.products h2,
.woocommerce .up-sells h2 {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    margin-bottom: 25px !important;
}

/* Product cards en shop / related */
.woocommerce ul.products li.product {
    background: rgba(20, 30, 55, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    padding: 0 0 20px 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.woocommerce ul.products li.product a img {
    border-radius: 12px 12px 0 0;
    margin-bottom: 15px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #ffffff !important;
    font-size: 1rem !important;
    padding: 0 15px !important;
}

.woocommerce ul.products li.product .price {
    color: #3da1ca !important;
    padding: 0 15px !important;
}

.woocommerce ul.products li.product .button {
    margin: 10px 15px 0 !important;
}

/* ==========================================================
   13. Mini-cart / Widget de carrito
   ========================================================== */
.widget_shopping_cart .cart_list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
}

.widget_shopping_cart .cart_list li a {
    color: #e2e8f0 !important;
}

.widget_shopping_cart .total {
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 10px !important;
}

/* ==========================================================
   14. Responsive – Checkout y Producto
   ========================================================== */
@media (max-width: 768px) {
    .woocommerce-checkout .col2-set,
    .woocommerce-checkout .woocommerce-checkout-review-order,
    .woocommerce div.product div.summary,
    .woocommerce div.product .woocommerce-tabs,
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart_totals,
    .woocommerce-checkout #payment {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        padding: 0;
    }

    ul.woocommerce-order-overview {
        flex-direction: column;
        gap: 15px;
    }

    ul.woocommerce-order-overview li {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding-bottom: 12px !important;
        padding-right: 0 !important;
    }

    ul.woocommerce-order-overview li:last-child {
        border-bottom: none !important;
    }

    .woocommerce div.product .product_title {
        font-size: 1.5rem !important;
    }

    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: 1.25rem !important;
    }
}

/* ==========================================================
   15. Coupon input en checkout
   ========================================================== */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: rgba(20, 30, 55, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: none !important;
    border-left: 3px solid #3da1ca !important;
    border-radius: 12px !important;
}

.woocommerce-checkout .checkout_coupon {
    background: rgba(20, 30, 55, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

.woocommerce-checkout .checkout_coupon .form-row input.input-text {
    flex: 1;
}

/* ==========================================================
   16. Scrollbar personalizada dentro de dropdowns Select2
   ========================================================== */
.select2-results__options {
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 161, 202, 0.4) transparent;
}

.select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background-color: rgba(61, 161, 202, 0.4);
    border-radius: 3px;
}

/* ==========================================================
   17. Animación sutil de entrada para paneles
   ========================================================== */
@keyframes exo-panel-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout #payment,
.woocommerce div.product div.summary,
.woocommerce div.product .woocommerce-tabs {
    animation: exo-panel-fade-in 0.4s ease-out;
}
