/* Estilos generales del checkout */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #77A3EB;
    --secondary-color: #0E5FD8;
    --dark-bg: #13171D;
    --darker-bg: #0D1015;
    --card-bg: rgba(19, 23, 29, 0.20);
    --border-color: rgba(255, 255, 255, 0.07);
    --text-color: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --input-bg: rgba(19, 23, 29, 0.20);
    --input-border: rgba(255, 255, 255, 0.07);
    --input-focus: #77A3EB;
}

/* Reset de margin/padding del navegador */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

body {
    background: radial-gradient(162.59% 185.6% at -5.75% -95%, rgba(17, 110, 251, 0.70) 0%, rgba(17, 110, 251, 0.00) 68.39%), radial-gradient(63.16% 50.69% at 51.28% 40.45%, #000 20.27%, rgba(0, 0, 0, 0.00) 75.1%), var(--ColorBlack, #000);
    color: var(--text-color);
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Reset para elementos de WordPress que puedan interferir */
#page, #content, .site-content, .content-area {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Centrar el main content */
main#content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: block;
}

/* Para pantallas grandes (>1200px) */
@media (min-width: 1200px) {
    main#content {
        max-width: 1340px;
    }
}

/* Contenedor principal del checkout */
.checkout-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Para pantallas medianas (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .checkout-container {
        padding: 0 24px;
    }
}

/* Para pantallas grandes (>1200px) aplicar max-width de 1340px */
@media (min-width: 1200px) {
    .checkout-container {
        max-width: 1340px;
        padding: 0 24px;
    }
}

.checkout-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
}

/* Selector de Capital */
.capital-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.capital-option {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.capital-option:hover {
    border-color: #0C0D14;
    transform: translateY(-2px);
}

.capital-option input[type="radio"] {
    display: none;
}

.capital-option input[type="radio"]:checked + .capital-amount {
    color: #0C0D14;
}

.capital-option input[type="radio"]:checked ~ .capital-price {
    background-color: #0C0D14;
    color: white;
}

.capital-amount {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.capital-price {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border-radius: 4px;
    text-align: center;
}

/* Selector de Plataforma */
.platform-field {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.platform-field label {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.platform-field label:hover {
    border-color: #0C0D14;
}

.platform-field input[type="radio"] {
    display: none;
}

.platform-field input[type="radio"]:checked + label {
    border-color: #0C0D14;
    background-color: #f5f5ff;
}

/* Campos del formulario */
.form-row {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4b5563;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-row input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-row.focused label {
    color: #6366f1;
}

/* Sección de pago */
#payment {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment_methods li {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 1rem;
    background-color: white;
}

/* Botón de pago */
#place_order {
    background-color: #6366f1;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1.5rem;
}

#place_order:hover {
    background-color: #4f46e5;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-container {
        padding: 1rem;
    }

    .capital-selector {
        grid-template-columns: 1fr;
    }

    .platform-field {
        flex-direction: column;
    }
}

/* Mensajes de error */
.woocommerce-error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 1rem;
    padding-left: 40px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    list-style: none;
}

/* Resumen del pedido */
.order-review {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.order-review table {
    width: 100%;
    border-collapse: collapse;
}

.order-review th,
.order-review td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.order-review tfoot tr:last-child {
    font-weight: 600;
    font-size: 1.125rem;
}

/* Configuración de cuenta */
.account-configuration {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.account-section {
    margin-bottom: 1rem;
}

.account-section h4 {
    font-size: 22px;
    color: #F7F6F0;
    opacity: 0.6;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Botones de opción */
.option-buttons,
.capital-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.option-button,
.capital-button,
.platform-button {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-button input[type="radio"],
.capital-button input[type="radio"],
.platform-button input[type="radio"] {
    display: none;
}

.option-button span,
.capital-button span,
.platform-button span {
    display: block;
    font-weight: 500;
    color: #4b5563;
}

.option-button:hover,
.capital-button:hover,
.platform-button:hover {
    transform: translateY(-2px);
}

.option-button.selected,
.capital-button.selected,
.platform-button.selected {
    background-color: #f5f5ff;
}

.option-button input[type="radio"]:checked + span,
.capital-button input[type="radio"]:checked + span,
.platform-button input[type="radio"]:checked + span {
    color: #0C0D14;
    font-weight: 700;
}

.capital-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.capital-button span {
    font-size: 0.9rem;
}

.capital-button .price {
    font-weight: 600;
    margin-top: 0.5rem;
}

.platform-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.platform-button span {
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

@media (max-width: 1200px) {
    .capital-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .account-configuration {
        padding: 1rem;
    }
    
    .capital-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-buttons {
        grid-template-columns: 1fr;
    }
    
    .platform-button {
        margin-bottom: 0.5rem;
    }
    
    .platform-button span {
        padding: 0.75rem 0;
    }
    
    .account-selector-section.full-width .capital-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.woocommerce-cart-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.woocommerce-cart-form table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.cart_totals h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.checkout-button {
    background-color: #6366f1;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
    display: block;
}

.checkout-button:hover {
    background-color: #4f46e5;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.woocommerce-billing-fields {
    margin-bottom: 1rem;
}

.woocommerce-billing-fields input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.woocommerce-billing-fields input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.woocommerce-billing-fields label {
    color: var(--text-muted);
}

.woocommerce-error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    padding-left: 50px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    list-style: none;
}

/* Estilos para el checkout de una sola página */
.noctorial-onepage-checkout {
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px 40px;
    color: var(--text-color);
    box-sizing: border-box;
}

/* Para pantallas grandes (>1200px) */
@media (min-width: 1200px) {
    .noctorial-onepage-checkout {
        max-width: 1340px;
        padding: 20px 24px 40px;
    }
}

/* Para pantallas medianas (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .noctorial-onepage-checkout {
        padding: 20px 24px 40px;
    }
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-header .header-left {
    flex: 0 0 45%;
    max-width: 45%;
}

.checkout-header .header-right {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkout-header h1 {
    font-size: 50px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    font-family: 'Urbanist', sans-serif;
    color: #F7F6F0;
}

.checkout-header h1 span {
    font-weight: 200;
    font-style: italic;
    margin-left: 0.5rem;
}

.checkout-header .checkout-info {
    font-size: 20px;
    font-weight: 200;
    color: var(--text-muted);
}

.checkout-header .support-btn {
    border-radius: 8px;
    border: 0px solid var(--primary-color);
    background-color: rgba(16, 110, 251, 0.30);
    background-blend-mode: color-dodge, normal;
    color: #EDEFD0;
    padding: 0.5rem 1rem;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.checkout-header .promotions-section {
    flex: 1;
    min-width: 0;
    /* El sticky ahora se maneja con JavaScript para mayor confiabilidad */
}

.checkout-header .support-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Contenedor principal de checkout - ANTIGUO (sobrescrito por nuevos estilos de steps) */
.onepage-checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* NUEVO SISTEMA DE STEPS: Sobrescribir layout antiguo */
.checkout-step-content .onepage-checkout-container {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    gap: 30px !important;
    margin-top: 0 !important;
    align-items: start !important;
}

/* Asegurar que los hijos directos se comporten correctamente */
.checkout-step-content .onepage-checkout-container > * {
    grid-column: auto !important;
    width: 100% !important;
}

/* Específicamente para Step 1 */
#step-configuration .onepage-checkout-container.step-configuration {
    display: grid !important;
    grid-template-columns: 1fr 40% !important;
}

#step-configuration .checkout-column-left.configuracion-cuenta {
    grid-column: 1 !important;
}

#step-configuration .checkout-column-right.resumen-cuentas {
    grid-column: 2 !important;
}

/* Específicamente para Step 2 (Payment) - Distribución 60/40 */
#step-payment .onepage-checkout-container.step-payment,
.checkout-step-content #step-payment .onepage-checkout-container {
    display: grid !important;
    grid-template-columns: 60% 40% !important;
}

/* Sección de Account Information de ancho completo */
.account-selector-section.full-width {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(172.24% 165.81% at -21.58% -52.56%, rgba(17, 110, 251, 0.40) 0%, rgba(17, 110, 251, 0.00) 68.39%), linear-gradient(0deg, rgba(17, 110, 251, 0.03) 0%, rgba(17, 110, 251, 0.03) 100%), rgba(19, 23, 29, 0.20);
    padding: 18px 16px;
}

/* Estilos para las secciones */
.account-selector-section {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(172.24% 165.81% at -21.58% -52.56%, rgba(17, 110, 251, 0.40) 0%, rgba(17, 110, 251, 0.00) 68.39%), linear-gradient(0deg, rgba(17, 110, 251, 0.03) 0%, rgba(17, 110, 251, 0.03) 100%), #13171D;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.customer-details-section,
.payment-section {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(207.07% 196.03% at -40.68% -76.52%, rgba(17, 110, 251, 0.60) 0%, rgba(17, 110, 251, 0.00) 68.39%), linear-gradient(0deg, rgba(17, 110, 251, 0.03) 0%, rgba(17, 110, 251, 0.03) 100%), rgba(19, 23, 29, 0.20);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.order-summary-section {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(225.04% 274.28% at -40.27% -162.96%, rgba(17, 110, 251, 0.40) 0%, rgba(17, 110, 251, 0.00) 68.39%), linear-gradient(0deg, rgba(17, 110, 251, 0.03) 0%, rgba(17, 110, 251, 0.03) 100%), rgba(19, 23, 29, 0.20);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    color: #F7F6F0;
    font-family: 'Urbanist', sans-serif;
    line-height: normal;
}

.section-header .step-number {
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Estilos para la columna izquierda */
.checkout-column-left {
    display: flex;
    flex-direction: column;
}

/* Estilos para la columna derecha */
.checkout-column-right {
    display: flex;
    flex-direction: column;
}

/* Estilos para el selector de cuenta */
.account-configuration {
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.account-section {
    margin-bottom: 1.5rem;
}

/* .account-section.challenge {
    display: none;
} */

.account-section h4 {
    font-size: 22px;
    color: #F7F6F0;
    margin-bottom: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    font-family: 'Public Sans', sans-serif;
    line-height: normal;
}

/* Botones de capital */
.capital-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.capital-button {
    border-radius: 8px;
    border: 0.5px solid rgba(247, 246, 240, 0.10);
    background: rgba(237, 237, 240, 0.04);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.capital-button.selected {
    border-radius: 8px;
    border: 0.5px solid rgba(247, 246, 240, 0.10);
    background: rgba(237, 237, 240, 0.75);
}

.capital-button input[type="radio"] {
    display: none;
}

.capital-button .capital-label {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 0.25rem;
    display: block;
    color: #ffffff; /* Texto blanco por defecto */
    font-family: 'Public Sans', sans-serif;
}

.capital-button.selected .capital-label {
    color: #000000; /* Texto negro cuando está seleccionado */
}

.capital-button .price {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
}

/* Botones de plataforma */
.platform-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
}

.platform-button {
    border-radius: 8px;
    border: 0.5px solid rgba(247, 246, 240, 0.10);
    background: rgba(237, 237, 240, 0.04);
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    width: 100%;
}

.platform-button:hover {
    border-color: var(--primary-color);
}

.platform-button.selected {
    border-radius: 8px;
    border: 0.5px solid rgba(247, 246, 240, 0.10);
    background: rgba(237, 237, 240, 0.75);
}

.platform-button input[type="radio"] {
    display: none;
}

.platform-button span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #F7F6F0;
    font-family: 'Public Sans', sans-serif;
}

/* Sección de addons */
.addons-section {
    margin-top: 0;
}

.addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.addon-item:last-child {
    border-bottom: none;
}

.addon-info {
    display: flex;
    align-items: center;
}

.addon-checkbox {
    margin-right: 1rem;
}

.addon-price {
    font-weight: 500;
    color: var(--primary-color);
}

/* Estilos para los campos del cliente */
.customer-details-section {
    margin-top: 0;
}

.form-row {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Public Sans', sans-serif;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(19, 23, 29, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    font-size: 14px;
    color: #F7F6F0;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-row.focused label {
    color: #F7F6F0;
    font-family: "Public Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

/* Estilos para el resumen del pedido */
.order-summary-section {
    margin-bottom: 1.5rem;
}

.order-summary-content {
    margin-top: 1.5rem;
}

.challenge-summary {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.challenge-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

/* Fila del producto base */
.challenge-summary-row-product {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.challenge-summary-row-total {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    font-family: 'Public Sans', sans-serif;
}

/* Estilos para el cupón */
.coupon-section {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
background: linear-gradient(0deg, rgba(17, 110, 251, 0.03) 0%, rgba(17, 110, 251, 0.03) 100%), rgba(19, 23, 29, 0.30);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.coupon-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.coupon-field {
    display: flex;
    gap: 0.5rem;
}

.coupon-field input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: rgba(19, 23, 29, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.coupon-field button {
    padding: 13px 24px;
    background-color: #106EFB;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.coupon-field button:hover {
    background-color: var(--secondary-color);
}

/* Estilos para cupones en el resumen del pedido */
.challenge-summary-row-coupon {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.challenge-summary-row-coupon.coupon-discount {
    color: var(--success-color);
}

.challenge-summary-row-coupon.coupon-discount .coupon-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.challenge-summary-row-coupon.coupon-discount .remove-coupon-inline {
    background: none;
    border: none;
    color: var(--success-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}

.challenge-summary-row-coupon.coupon-discount .remove-coupon-inline:hover {
    background-color: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

.challenge-summary-row-coupon.coupon-discount .remove-coupon-inline.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.challenge-summary-row-coupon.coupon-discount .remove-icon {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
} 

/* Estilo para el descuento en el resumen - Legacy (ya no se usa) */
.challenge-summary-row.discount {
    color: var(--success-color);
}

/* Addons en order-summary-content */
.order-summary-addons {
    margin: 0.5rem 0;
}

.order-summary-addons-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.order-summary-addons-title {
    font-weight: 500;
}

.order-summary-addons-price {
    font-weight: 600;
}

/* Estilos para cupones aplicados nativos */
.applied-coupons {
    margin-top: 1rem;
}

.applied-coupon-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.applied-coupon-badge .coupon-code {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.applied-coupon-badge .coupon-discount {
    font-weight: 600;
    color: #FEF3C7;
}

.applied-coupon-badge .remove-coupon {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.applied-coupon-badge .remove-coupon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.applied-coupon-badge .remove-coupon.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.applied-coupon-badge .remove-icon {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.challenge-summary-row-coupon.coupon-discount .remove-coupon-inline {
    background: none;
    border: none;
    color: var(--success-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex
;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
}

/* Estilos para la sección de pago */
.payment-section {
    margin-bottom: 1.5rem;
}

#payment {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment_methods li {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: rgba(19, 23, 29, 0.20);
}

.payment_methods li.payment_method_paypal img {
    max-height: 24px;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.payment_methods li label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.payment_box {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Botón de pago */
#place_order {
    background-color: #106EFB;
    color: black;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

#place_order:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Mensajes de error */
.woocommerce-error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    padding-left: 50px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    list-style: none;
}

/* Mensajes de éxito */
.woocommerce-message {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: 1rem;
    padding-left: 50px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* Animación de carga */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estilos para el indicador de carga */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(52, 152, 219, 0.2);
    border-top-color: var(--primary-color);
    animation: spin 1s infinite linear;
}

.updating {
    opacity: 0.5;
    pointer-events: none;
}

/* Estilos para campos adicionales de WooCommerce */
.woocommerce-additional-fields {
    margin-bottom: 1.5rem;
}

.woocommerce-additional-fields__field-wrapper {
    margin-top: 1rem;
}

/* Estilos para Stripe - Corregir fuente y apariencia */
#stripe-card-element,
#stripe-exp-element,
#stripe-cvc-element {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    font-size: 14px !important;
    color: #F7F6F0 !important;
    background-color: rgba(19, 23, 29, 0.20) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    min-height: 44px !important;
}

/* Estilos para los labels de Stripe */
#stripe-card-element label,
#stripe-exp-element label,
#stripe-cvc-element label,
.StripeElement label {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    font-size: 14px !important;
    color: var(--text-muted) !important;
    font-weight: 300 !important;
}

/* Estilos para el placeholder de Stripe */
#stripe-card-element input::placeholder,
#stripe-exp-element input::placeholder,
#stripe-cvc-element input::placeholder,
.StripeElement input::placeholder {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
    font-size: 14px !important;
    color: rgba(247, 246, 240, 0.3) !important;
}

/* Corregir alineación de radio buttons en métodos de pago */
.payment_methods li {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: rgba(19, 23, 29, 0.20);
}

/* Contenedor para el radio button y título */
.payment_methods li > label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    color: #F7F6F0;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 0;
}

.payment_methods li input[type="radio"] {
    margin: 0;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Estilos para el texto del método de pago */
.payment_methods li label span {
    display: inline;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    color: #F7F6F0;
    font-weight: 300;
}

/* Estilos para el contenedor del formulario de pago */
.payment_methods li .payment_box {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Asegurar que el formulario de Stripe esté separado del título */
.payment_method_stripe .payment_box {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(19, 23, 29, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

/* Estilos para el contenedor de Stripe */
.payment_method_stripe {
    display: block;
}

.payment_method_stripe > label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Estilos para Apple Pay y Google Pay */
#stripe-payment-request-button {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

#stripe-payment-request-button button {
    width: 100% !important;
    height: 44px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    background-color: rgba(19, 23, 29, 0.20) !important;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
}

/* Separador entre Payment Request y tarjeta */
.payment-request-separator {
    text-align: center;
    margin: 1rem 0;
    position: relative;
    display: none; /* Oculto por defecto */
}

.payment-request-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.07);
}

.payment-request-separator span {
    background-color: var(--background-color);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'Public Sans', sans-serif;
}

/* Estilos para los botones de Payment Request de WooCommerce Stripe */
.wc-stripe-payment-request-button-separator,
.stripe-payment-request-button-separator {
    margin: 1rem 0;
}

.wc-stripe-payment-request-button,
.stripe-payment-request-button {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.wc-stripe-payment-request-button button,
.stripe-payment-request-button button {
    width: 100% !important;
    height: 44px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    background-color: rgba(19, 23, 29, 0.20) !important;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
}

/* Asegurar que los botones de Payment Request se muestren correctamente */
.payment_method_stripe .wc-stripe-payment-request-button-separator,
.payment_method_stripe .stripe-payment-request-button-separator,
.payment-request-section .wc-stripe-payment-request-button-separator,
.payment-request-section .stripe-payment-request-button-separator {
    display: block !important;
    visibility: visible !important;
}

/* Contenedor específico para Payment Request en nuestro checkout */
.payment-request-section {
    margin-bottom: 1.5rem;
}

.stripe-payment-request-container {
    margin-bottom: 1rem;
}

/* Ocultar el separador si no hay botones de Payment Request */
.payment_method_stripe:not(:has(.wc-stripe-payment-request-button)) .payment-request-separator,
.payment_method_stripe:not(:has(.stripe-payment-request-button)) .payment-request-separator {
    display: none !important;
}

/* Asegurar que el formulario de tarjeta esté bien separado */
.wc-credit-card-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Estilos para los iconos de tarjetas en Stripe */
.stripe-card-group {
    position: relative;
}

.stripe-credit-card-brand {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Estilos para el contenedor de elementos de Stripe */
.wc-stripe-elements-field {
    position: relative;
}

/* Estilos para mensajes de error de Stripe */
.stripe-source-errors {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 0.5rem;
    font-family: 'Public Sans', sans-serif;
}

/* Estilos para el estado focus de Stripe */
#stripe-card-element.StripeElement--focus,
#stripe-exp-element.StripeElement--focus,
#stripe-cvc-element.StripeElement--focus {
    border-color: var(--input-focus) !important;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2) !important;
}

/* Estilos para el estado completo de Stripe */
#stripe-card-element.StripeElement--complete,
#stripe-exp-element.StripeElement--complete,
#stripe-cvc-element.StripeElement--complete {
    border-color: var(--success-color) !important;
}

/* Estilos para el estado inválido de Stripe */
#stripe-card-element.StripeElement--invalid,
#stripe-exp-element.StripeElement--invalid,
#stripe-cvc-element.StripeElement--invalid {
    border-color: var(--error-color) !important;
}

/* Estilos adicionales para mejorar la integración de Stripe */
.StripeElement {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif !important;
}

/* Estilos para el contenedor de Stripe */
.wc-credit-card-form {
    background: transparent !important;
}

/* Estilos para los campos de Stripe cuando están en modo inline */
.wc-credit-card-form .form-row {
    margin-bottom: 1.5rem;
}

.wc-credit-card-form .form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Public Sans', sans-serif;
    font-weight: 300;
}

/* Estilos para el grupo de tarjeta de Stripe */
.stripe-card-group {
    position: relative;
    display: flex;
    align-items: center;
}

/* Estilos para el icono de tarjeta */
.stripe-credit-card-brand {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

/* Estilos para el campo de tarjeta cuando tiene icono */
.stripe-card-group #stripe-card-element {
    padding-right: 50px !important;
}

/* Estilos para los campos de fecha y CVC */
.form-row-first #stripe-exp-element,
.form-row-last #stripe-cvc-element {
    width: 100%;
}

/* Estilos para el contenedor de errores de Stripe */
.stripe-source-errors {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 0.5rem;
    font-family: 'Public Sans', sans-serif;
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error-color);
    padding: 0.5rem;
    border-radius: 4px;
}

/* Estilos para el checkbox de guardar tarjeta */
.wc-stripe-save-payment-method {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(19, 23, 29, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

.wc-stripe-save-payment-method label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    color: #F7F6F0;
    font-weight: 300;
    cursor: pointer;
}

.wc-stripe-save-payment-method input[type="checkbox"] {
    margin: 0;
}

/* Estilos para métodos de pago guardados */
.wc-stripe-saved-payment-methods {
    margin-bottom: 1rem;
}

.wc-stripe-saved-payment-methods label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    color: #F7F6F0;
    font-weight: 300;
    cursor: pointer;
    padding: 0.75rem;
    background-color: rgba(19, 23, 29, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.wc-stripe-saved-payment-methods input[type="radio"] {
    margin: 0;
}

/* Estilos para el botón de añadir nueva tarjeta */
.wc-stripe-add-payment-method {
    margin-top: 1rem;
}

.wc-stripe-add-payment-method button {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc-stripe-add-payment-method button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Estilos responsive */
@media (max-width: 992px) {
    .onepage-checkout-container {
        grid-template-columns: 1fr;
    }
    
    .account-selector-section.full-width .capital-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .noctorial-onepage-checkout {
        padding: 16px 12px 32px !important;
    }
    
    /* Header más compacto */
    .checkout-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px !important;
        padding-bottom: 16px !important;
        gap: 0px;
    }
    
    .checkout-header .header-left,
    .checkout-header .header-right {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .checkout-header .header-right {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .checkout-header .promotions-section {
        width: 100%;
    }
    
    .checkout-header h1 {
        font-size: 24px !important;
    }
    
    .checkout-header p {
        font-size: 13px !important;
    }
    
    .checkout-header .support-btn {
        margin-top: 0;
        font-size: 12px !important;
        padding: 8px 16px !important;
    }
    
    .capital-buttons,
    .platform-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .account-selector-section.full-width .capital-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coupon-field {
        flex-direction: row;
        gap: 8px;
    }
    
    .coupon-field button {
        width: auto;
        white-space: nowrap;
        font-size: 13px !important;
        padding: 10px 16px !important;
    }
}

/* Botones de challenge */
.challenge-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.challenge-button {
    background-color: rgba(237, 237, 240, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.challenge-button:hover {
    border-color: var(--primary-color);
}

.challenge-button.selected {
    border-color: var(--primary-color);
    background-color: rgba(17, 110, 251, 0.15);
}

.challenge-button input[type="radio"] {
    display: none;
}

.challenge-button span {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff; /* Texto blanco por defecto */
}

.challenge-button.selected span {
    color: #000000; /* Texto negro cuando está seleccionado */
}

@media (max-width: 768px) {
    .challenge-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilos para Challenge y Platform en la misma fila */
.challenge-platform-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.challenge-platform-row .account-section:first-child {
    flex: 4;
    margin-bottom: 0;
}

.challenge-platform-row .account-section:last-child {
    flex: 1;
    margin-bottom: 0;
}

.vertical-separator {
    width: 1px;
    background-color: var(--border-color);
    align-self: stretch;
    margin: 1rem 0;
}

.challenge-buttons {
    display: flex;
    gap: 0.5rem;
}

.challenge-button,
.platform-button {
    flex: 1;
}

/* Challenge buttons en account-section.challenge deben ocupar ancho completo */
.account-section.challenge .challenge-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.account-section.challenge .challenge-button {
    flex: 1;
    min-width: 0;
}

/* Capital buttons en account-section.trading-capital deben ser grid 2 filas x 3 columnas */
.account-section.trading-capital .capital-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0.5rem;
}

.woocommerce-checkout #payment ul.payment_methods {
    padding: 0px;
}

#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
    background: rgb(129 110 153 / 0%);
}

input[type=text] {
    border-radius: 8px;
    border: 0.5px solid rgba(247, 246, 240, 0.10);
    background: rgba(237, 237, 240, 0.04);
}

.section-header .step-number {
    display: none;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .challenge-platform-row {
        flex-direction: column;
        margin-bottom: 1rem;
        gap: 0;
    }
    
    .vertical-separator {
        display: none;
    }
    
    .challenge-platform-row .account-section:first-child,
    .challenge-platform-row .account-section:last-child {
        width: 100%;
        margin-bottom: 1.5rem;
        flex: 1;
    }

    .checkout-header h1 {
        font-size: 30px;
    }

    .checkout-header .checkout-info {
        font-size: 16px;
    }

    .checkout-header .support-btn {
        font-size: 14px;
    }

    .capital-button {
        height: 44px;
        padding: 13px 24px;
    }

    .capital-button .capital-label {
        font-size: 16px;
    }

    .platform-button {
        height: 44px;
        padding: 13px 24px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .account-section h4 {
        font-size: 18px;
    }
    
    .addons-section .section-header h2 {
        font-size: 28px;
    }
    
    .order-summary-section {
        padding: 18px 16px;
    }

    .customer-details-section, .payment-section {
        padding: 18px 16px;
    }

    .account-section.platform {
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
    }

    .onepage-checkout-container {
        gap: 0;
    }
    
    /* Challenge buttons en móvil - mantener ancho completo */
    .account-section.challenge .challenge-buttons {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    
    .account-section.challenge .challenge-button {
        flex: 1;
        min-width: 0;
    }
    
    /* Capital buttons en móvil - mantener grid de 2 filas x 3 columnas si caben, sino 2 columnas */
    .account-section.trading-capital .capital-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
} 

/* Header Responsive */
.noctorial-header {
    background: rgba(12, 13, 20, 0.50);
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 159px;
    height: 49px;
    object-fit: contain;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 16px;
    border-radius: 5px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(90deg, #77A3EB 0%, #77A3EB 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0E5FD8 0%, #0E5FD8 100%);
}

@media (max-width: 768px) {
    .noctorial-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(12, 13, 20, 0.50);
        backdrop-filter: blur(10px);
    }
    
    .header-container {
        padding-right: 15px;
    }
    
    .logo img {
        width: 144px;
        height: 32px;
    }
    
    .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
} 

/* Footer con Copyright */
.noctorial-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    background: rgba(12, 13, 20, 0.50);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}

@media (max-width: 768px) {
    .noctorial-footer {
        margin-top: 2rem;
        padding: 1rem 0;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .copyright {
        font-size: 12px;
    }
}

/* Estilos para la página de "Pedido recibido" */
.noctorial-thank-you-page {
    max-width: 1340px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-color);
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.success-icon {
    text-align: center;
    margin-bottom: 2rem;
}

.thank-you-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #F7F6F0;
    font-family: 'Urbanist', sans-serif;
}

.thank-you-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-family: 'Public Sans', sans-serif;
}

.order-details {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(225.04% 274.28% at -40.27% -162.96%, rgba(17, 110, 251, 0.40) 0%, rgba(17, 110, 251, 0.00) 68.39%), linear-gradient(0deg, rgba(17, 110, 251, 0.03) 0%, rgba(17, 110, 251, 0.03) 100%), rgba(19, 23, 29, 0.20);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-details h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #F7F6F0;
    font-family: 'Urbanist', sans-serif;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.order-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #F7F6F0;
    font-weight: 500;
}

.info-value.total-price {
    color: var(--success-color);
    font-weight: 600;
    font-size: 18px;
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 16px;
    font-weight: 500;
    color: #F7F6F0;
    display: block;
    margin-bottom: 0.5rem;
}

.item-attributes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.attribute {
    font-size: 14px;
    color: var(--text-muted);
    font-family: 'Public Sans', sans-serif;
}

/* Estilos para addons en cada item */
.item-addons {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.addons-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.addon-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    padding-left: 0.5rem;
}

.addon-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Public Sans', sans-serif;
}

.addon-price {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 1rem;
}

.item-total {
    font-size: 16px;
    font-weight: 500;
    color: #F7F6F0;
}

.order-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 14px;
}

.total-row.discount {
    color: var(--success-color);
}

.total-row.final-total {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.total-row.payment-method {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 1rem;
}

.billing-address {
    color: #F7F6F0;
    font-family: 'Public Sans', sans-serif;
}

.billing-address p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.billing-address svg {
    color: var(--text-muted);
}

.dashboard-button-container {
    text-align: center;
    margin: 3rem 0;
}

.dashboard-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(90deg, #77A3EB 0%, #77A3EB 100%);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.dashboard-button:hover {
    background: linear-gradient(90deg, #0E5FD8 0%, #0E5FD8 100%);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.dashboard-button svg {
    width: 20px;
    height: 20px;
}

.email-notification {
    text-align: center;
    padding: 1.5rem;
    background: rgba(19, 23, 29, 0.30);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.email-notification p {
    color: var(--text-muted);
    margin: 0;
    font-family: 'Public Sans', sans-serif;
}

/* Responsive para la página de "Pedido recibido" */
@media (max-width: 768px) {
    .noctorial-thank-you-page {
        padding: 15px;
    }
    
    .thank-you-content {
        padding: 1rem 0;
    }
    
    .thank-you-title {
        font-size: 32px;
    }
    
    .thank-you-subtitle {
        font-size: 16px;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .order-details {
        padding: 1rem;
    }
    
    .order-details h2 {
        font-size: 20px;
    }
    
    .dashboard-button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .item-name {
        font-size: 14px;
    }
    
    .item-total {
        font-size: 14px;
    }
}

/* ============================================================================
   ESTILOS PARA PRODUCTOS DE BECAS ACADÉMICAS
   ============================================================================ */

.scholarship-capital-info {
    background: linear-gradient(135deg, rgba(17, 110, 251, 0.1) 0%, rgba(17, 110, 251, 0.05) 100%);
    border: 2px solid rgba(17, 110, 251, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.scholarship-capital-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.scholarship-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #77A3EB;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.capital-fixed {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, #77A3EB 0%, #0E5FD8 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(17, 110, 251, 0.3);
}

.scholarship-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-style: italic;
}

/* Estilos para productos de becas en el resumen */
.scholarship-product-summary {
    background: linear-gradient(135deg, rgba(17, 110, 251, 0.1) 0%, rgba(17, 110, 251, 0.05) 100%);
    border-left: 4px solid #77A3EB;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.scholarship-product-summary .product-name {
    font-weight: 600;
    color: #77A3EB;
    margin-bottom: 0.5rem;
}

.scholarship-product-summary .product-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive para productos de becas */
@media (max-width: 768px) {
    .scholarship-capital-info {
        padding: 1rem;
    }
    
    .scholarship-label {
        font-size: 1rem;
    }
    
    .capital-fixed {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }
    
    .scholarship-description {
        font-size: 0.85rem;
    }
}

/* ============================================================================
   ESTILOS PARA BOTONES DESACTIVADOS EN BECAS ACADÉMICAS
   ============================================================================ */

.capital-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.capital-button.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.capital-button.disabled input[type="radio"] {
    cursor: not-allowed;
}

.capital-button.disabled .capital-label {
    color: rgba(255, 255, 255, 0.4);
}

.disabled-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e74c3c;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
}

/* Asegurar que el botón seleccionado no se vea desactivado */
.capital-button.disabled.selected {
    opacity: 1;
    background: linear-gradient(135deg, #77A3EB 0%, #0E5FD8 100%);
    border-color: #77A3EB;
}

.capital-button.disabled.selected .capital-label {
    color: #FFFFFF;
}

.capital-button.disabled.selected .disabled-overlay {
    display: none;
}

/* ============================================================================
   ESTILOS PARA CAMPO DE CONFIRMACIÓN DE EMAIL
   ============================================================================ */

/* Estilos para el campo de confirmación de email */
#billing_email_confirm {
    border-radius: 8px;
    border: 0.5px solid rgba(247, 246, 240, 0.4);
    background: rgba(237, 237, 240, 0.04);
}

#billing_email_confirm:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 2px rgba(17, 110, 251, 0.2);
    outline: none;
}

#billing_email_confirm.woocommerce-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

#billing_email_confirm.woocommerce-validated {
    border-color: var(--success-color);
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

/* Estilos para el mensaje de error de confirmación de email */
.form-row .woocommerce-error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Estilos para el mensaje de éxito de confirmación de email */
.form-row .woocommerce-success {
    color: var(--success-color);
    font-size: 14px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease;
    font-weight: 500;
}

/* Estilos para el mensaje de advertencia de erratas */
.form-row .woocommerce-warning {
    color: #f39c12;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease;
    font-weight: 500;
    background: rgba(243, 156, 18, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #f39c12;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para el label del campo de confirmación */
.form-row label[for="billing_email_confirm"] {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Estilos para el contenedor del campo de confirmación */
.form-row:has(#billing_email_confirm) {
    margin-bottom: 20px;
}

/* Estilos para el estado de validación */
.form-row.woocommerce-invalid #billing_email_confirm {
    border-color: var(--error-color);
}

.form-row.woocommerce-validated #billing_email_confirm {
    border-color: var(--success-color);
}

/* ===========================================
   ADDONS STYLES - Uniforme con order-summary
   =========================================== */

.addons-section {
    margin-bottom: 1rem;
}

.addons-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.addons-section .section-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    color: #F7F6F0;
    font-family: 'Urbanist', sans-serif;
    line-height: normal;
}

/* Lista de addons - Estilo como challenge-summary */
.addons-list {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.addon-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 0;
}

.addon-item:hover {
    border: none;
    box-shadow: none;
}

.addon-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.addon-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.addon-checkbox {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.addon-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.addon-checkbox input[type="checkbox"]:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.addon-checkbox input[type="checkbox"]:checked {
    background-color: #D9D9D9;
    border-color: #D9D9D9;
}

.addon-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

/* Estilos cuando está seleccionado - simplificado */

.addon-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    padding: 0;
    border-radius: 0;
    flex: 1;
}

.addon-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.addon-name {
    font-weight: normal;
    font-size: 0.9rem;
    color: #F7F6F0;
}

.addon-checkbox input[type="checkbox"]:checked + .addon-info .addon-name {
    color: var(--primary-color);
    font-weight: 600;
}

.addon-total {
    color: #F7F6F0;
    font-size: 0.9rem;
}

.addon-checkbox input[type="checkbox"]:checked + .addon-info .addon-total {
    color: var(--primary-color);
    font-weight: 600;
}

.addon-price {
    background: #77A3EB;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

/* Ocultar elementos no necesarios */
.addon-description {
    display: none;
}

.addon-checkbox input[type="checkbox"]:checked + .addon-info .addon-description {
    color: rgba(255, 255, 255, 0.9);
}

.addon-external-id {
    display: none;
}

.addon-external-id small {
    color: #9ca3af;
    font-size: 12px;
}

.addon-checkbox input[type="checkbox"]:checked + .addon-info .addon-external-id small {
    color: rgba(255, 255, 255, 0.7);
}

/* Addons-summary eliminado - ahora se usa order-summary-addons */
.addons-summary {
    display: none !important; /* Ya no se usa */
}

.addons-summary h4 {
    color: #F7F6F0;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.selected-addons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.selected-addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1d29;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #2a2f3f;
}

.selected-addon-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.selected-addon-name {
    font-weight: 500;
    color: #e2e8f0;
}

.selected-addon-percentage {
    background: #77A3EB;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.selected-addon-price {
    color: #10b981;
    font-weight: 600;
}

.remove-selected-addon {
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-selected-addon:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.remove-selected-addon .remove-icon {
    font-size: 14px;
    line-height: 1;
}

.addons-total {
    text-align: right;
    padding-top: 12px;
    border-top: 1px solid #3a4151;
}

.addons-total strong {
    color: #77A3EB;
    font-size: 16px;
}

#addons-total-amount {
    color: #10b981;
}

/* Notificaciones de addons */
.addon-notice {
    padding: 12px 16px;
    margin: 0 0 16px 0;
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-notice p {
    margin: 0;
    font-weight: 500;
}

.addon-notice-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.addon-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.addon-notice-dismiss {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.addon-notice-dismiss:hover {
    opacity: 0.7;
}

/* Estado vacío */
.empty-addons {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 32px 20px;
    background: #2a2f3f;
    border-radius: 8px;
    border: 2px dashed #3a4151;
}

/* Responsive */
@media (max-width: 768px) {
    .addon-header {
        flex-direction: column;
        align-items: flex-start;
        align-content: flex-start;
        gap: 8px;
    }
    
    .selected-addon-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .addons-total {
        text-align: left;
    }
}

/* Integración con el diseño existente */
.onepage-checkout-container .addons-section {
    order: 1; /* Aparecer antes del resumen del pedido */
}

.onepage-checkout-container .order-summary-section {
    order: 2; /* Aparecer después de los addons */
}

/* Animaciones */
.addon-item {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-addon-item {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================================
   ADDONS EN THANKYOU PAGE
   =========================================== */

/* .addons-section {
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid #2a2f3f;
} */

/* Estilos para promociones de addons */
.addon-promotion-badge {
    background: #4CAF50;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
    animation: pulse-green 2s infinite;
}

/* Estilos para addons restringidos */
.addon-restricted-badge {
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
}

.addon-item.addon-restricted {
    opacity: 0.7;
    position: relative;
}

.addon-item.addon-restricted::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.addon-item.addon-restricted .addon-checkbox {
    cursor: not-allowed;
}

.restricted-info {
    color: #e74c3c;
    font-weight: 600;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(231, 76, 60, 0.3);
}

/* Estilos para precios en oferta en el resumen */
.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.price-container .sale-price {
    color: #10b981; /* Verde para el precio de oferta */
    font-weight: 600;
    font-size: 1.1em;
}

.price-container .regular-price {
    color: #6b7280; /* Gris para el precio regular tachado */
    font-size: 0.9em;
    text-decoration: line-through;
    font-weight: normal;
}

/* Asegurar que los precios se muestren correctamente en móvil */
@media (max-width: 768px) {
    .price-container {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }
    
    .price-container .sale-price {
        font-size: 1em;
    }
    
    .price-container .regular-price {
        font-size: 0.8em;
    }
}

/* Estilos para botones de cupones */
.apply-coupon-btn {
    background: #007cba !important;
    border-color: #007cba !important;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-coupon-btn:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
}

.apply-coupon-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.apply-coupon-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.remove-coupon-inline {
    background: none;
    border: none;
    color: #d63384;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    margin-left: 8px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-coupon-inline:hover {
    background: #d63384;
    color: white;
    transform: scale(1.1);
}

.remove-coupon-inline.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 4px;
}

.free-price {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.addons-title {
    color: #F7F6F0;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.addons-section .addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2a2f3f;
    background: transparent;
    border-radius: 0;
    flex-direction: column;
}

.addons-section .addon-item:last-child {
    border-bottom: none;
}

.addon-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.addon-details .addon-name {
    color: #F7F6F0;
    font-weight: normal;
    font-size: 0.9rem;
}

.addon-details .addon-percentage {
    background: #77A3EB;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.addons-section .addon-total {
    color: #F7F6F0;
    font-weight: normal;
    font-size: 0.9rem;
}

/* Estilos para descuentos en totales */
.total-row.discount {
    color: #10b981;
}

.total-row.discount span:last-child {
    color: #10b981;
    font-weight: 600;
}

/* Responsive para addons en thankyou */
@media (max-width: 768px) {
    .addons-section .addon-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .addons-section .addon-total {
        align-self: flex-end;
    }
} 

/* Estilos para el checkbox personalizado */
.custom-checkbox-wrapper {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.custom-checkbox-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.custom-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.custom-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    transform: scale(1.2);
    accent-color: #77A3EB;
}

.custom-checkbox-label span {
    flex: 1;
}

.custom-checkbox-label a {
    color: #77A3EB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-checkbox-label a:hover {
    color: #0E5FD8;
    text-decoration: underline;
}

/* Estilo para cuando el checkbox está marcado */
.custom-checkbox-label input[type="checkbox"]:checked + span {
    color: #e0e0e0;
}

/* Estados del checkbox */
.custom-checkbox-wrapper.checkbox-checked {
    background: rgba(17, 110, 251, 0.1);
    border-color: rgba(17, 110, 251, 0.3);
}

.custom-checkbox-wrapper.checkbox-error {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.checkbox-error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Clase para lectores de pantalla */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estilos para el formulario de onboarding */
.onboarding-form-section {
    margin-bottom: 30px;
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.onboarding-form-section h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.onboarding-description {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
}

.tally-iframe-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tally-responsive-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.3s ease;
}

.tally-responsive-iframe:hover {
    transform: translateY(-2px);
}

.onboarding-note {
    color: #b0b0b0;
    text-align: center;
    font-size: 14px;
    font-style: italic;
    margin-top: 20px;
    line-height: 1.5;
}

/* Responsive para el iframe */
@media (max-width: 768px) {
    .onboarding-form-section {
        padding: 20px 15px;
        margin-bottom: 25px;
        margin-top: 25px;
    }
    
    .onboarding-form-section h2 {
        font-size: 20px;
    }
    
    .onboarding-description {
        font-size: 15px;
    }
    
    .tally-responsive-iframe {
        height: 500px;
    }
    
    .onboarding-note {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .onboarding-form-section {
        padding: 15px 10px;
    }
    
    .tally-responsive-iframe {
        height: 450px;
    }
}

/* Indicador de carga del iframe */
.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #77A3EB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iframe-loading p {
    margin: 0;
    font-size: 16px;
    color: #e0e0e0;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.retry-button {
    background: #77A3EB;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.retry-button:hover {
    background: #0E5FD8;
}

/* ============================================
   NUEVO SISTEMA DE TABS Y STEPS
   ============================================ */

/* Contenedor de tabs - 100% ancho */
.checkout-tabs-container {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
}

/* Tab individual */
.checkout-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 0.5px solid rgba(247, 246, 240, 0.10);
    background: rgba(237, 237, 240, 0.04);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Public Sans', sans-serif;
}

.checkout-tab .tab-number {
    font-weight: 600;
    font-size: 12px;
}

.checkout-tab .tab-label {
    font-size: 13px;
}

.checkout-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(237, 237, 240, 0.08);
}

.checkout-tab.active {
    background: rgba(16, 110, 251, 0.30);
    color: var(--text-color);
    border: 0.5px solid rgba(247, 246, 240, 0.10);
}

button.checkout-tab.disabled {
    border-radius: 8px;
    border: 0.5px solid rgba(247, 246, 240, 0.10);
    background: rgba(237, 237, 240, 0.04);
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: auto; /* Permitir eventos para mostrar que está disabled */
}

button.checkout-tab.disabled:hover {
    background: rgba(237, 237, 240, 0.04);
    color: rgba(255, 255, 255, 0.6);
    transform: none;
}

/* Contenido de los steps */
.checkout-step-content {
    width: 100%;
}

/* Layout de 2 columnas para steps */
.step-configuration {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.step-payment {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 30px;
    align-items: start;
}

/* Ajustes para columna izquierda en Step 1 */
.step-configuration .checkout-column-left {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(172.24% 165.81% at -21.58% -52.56%, rgba(17, 110, 251, 0.40) 0%, rgba(17, 110, 251, 0.00) 68.39%), linear-gradient(0deg, rgba(17, 110, 251, 0.03) 0%, rgba(17, 110, 251, 0.03) 100%), rgba(19, 23, 29, 0.20);
    padding: 24px;
}

.step-configuration .checkout-column-left .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.step-configuration .checkout-column-left .section-header h2 {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.step-configuration .checkout-column-left .section-header .btn-add-account-header {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: black;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Public Sans', sans-serif;
    white-space: nowrap;
}

.step-configuration .checkout-column-left .section-header .btn-add-account-header:hover {
    background: #ffffff1a;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

span.addon-price-original {
    text-decoration-line: line-through;
    color: #999;
    font-size: 11px;
    margin-right: 4px;
}

span.addon-price-sale {
    color: #10b981;
    font-weight: 600;
}

/* Estilos para precios en oferta en botones */
.btn-add-account-header .btn-price-sale,
.btn-add-account-sticky .btn-price-sale {
    font-size: 14px;
    font-weight: 700;
    color: #33b562;
    margin-right: 6px;
}

.btn-add-account-header .btn-price-regular,
.btn-add-account-sticky .btn-price-regular {
    font-size: 12px;
    font-weight: 400;
    color: rgb(199 20 20 / 63%);
    text-decoration: line-through;
}

/* Secciones de atributos dentro de "Configura tu cuenta" */
.step-configuration .account-section {
    margin-bottom: 24px;
}

.step-configuration .account-section:last-of-type {
    margin-bottom: 0;
}

.step-configuration .account-section h4 {
    color: var(--text-color);
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-family: 'Public Sans', sans-serif;
}

/* Botones de challenge/capital/platform más compactos */
.step-configuration .challenge-buttons,
.step-configuration .capital-buttons,
.step-configuration .platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-configuration .challenge-button,
.step-configuration .capital-button,
.step-configuration .platform-button {
    border-radius: 8px;
    border: 0.5px solid rgba(247, 246, 240, 0.10);
    background: rgba(16, 110, 251, 0.10);
    color: #000000;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 1 auto;
}

.step-configuration .challenge-button:hover,
.step-configuration .capital-button:hover,
.step-configuration .platform-button:hover {
    background: rgba(17, 110, 251, 0.2);
    border-color: rgba(17, 110, 251, 0.3);
}

.step-configuration .challenge-button.selected,
.step-configuration .capital-button.selected,
.step-configuration .platform-button.selected {
    background: #77A3EB !important;
    border-color: rgba(247, 246, 240, 0.10) !important;
    color: var(--text-color);
}

/* Sección de promociones en Step 1 */
.step-configuration .promotions-section {
    margin-top: 24px;
}

.step-configuration .promotions-section .promotion-card {
    background: rgba(17, 110, 251, 0.1);
    border: 1px solid rgba(17, 110, 251, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

/* Sección de addons más compacta */

.step-configuration .addons-section h4 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Botón "Continuar al pago" */
.btn-continue-to-payment {
    width: 100%;
    background: #106EFB;
    border: none;
    color: var(--text-color);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    font-family: 'Public Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-continue-to-payment:hover {
    background: #0E5FD8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 110, 251, 0.3);
}

/* Botón "Añadir por X€" sticky - mismo estilo que "Continuar al pago" */
.btn-add-account-sticky {
    width: 100%;
    background: #0E5FD8;
    border: none;
    color: var(--text-color);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    font-family: 'Public Sans', sans-serif;
    display: none; /* Oculto en desktop, visible en móvil */
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-account-sticky:hover {
    background: #0E5FD8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 110, 251, 0.3);
}

/* Botón sticky en móvil y tablet */
@media (max-width: 1024px) {
    /* Botón "Continuar al pago" - se muestra en su posición normal, no sticky */
    .btn-continue-to-payment {
        display: flex;
        position: relative;
    }
    
    /* Botón "Añadir por X€" sticky - siempre visible en móvil */
    .btn-add-account-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 16px 24px;
        z-index: 999;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        display: flex !important; /* Siempre visible en móvil */
    }
    
    /* Añadir padding al contenedor para evitar que el contenido se oculte debajo del botón sticky */
    .checkout-column-left.configuracion-cuenta {
        padding-bottom: 80px !important;
    }
    
    .btn-continue-to-payment:hover,
    .btn-add-account-sticky:hover {
        transform: none;
    }
}

/* En desktop, el botón "Continuar al pago" se comporta normal */
@media (min-width: 1025px) {
    .btn-continue-to-payment {
        display: flex;
    }
    
    /* En desktop nunca mostrar el botón "Añadir por X€" sticky */
    .btn-add-account-sticky {
        display: none !important;
    }
}

/* Resumen de cuentas mejorado */
.step-configuration .checkout-column-right.resumen-cuentas {
    position: sticky;
    top: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(148.33% 135.18% at 10.75% -33.53%, rgba(17, 110, 251, 0.40) 0%, rgba(17, 110, 251, 0.00) 68.39%), radial-gradient(225.04% 274.28% at -40.27% -162.96%, rgba(17, 110, 251, 0.40) 0%, rgba(17, 110, 251, 0.00) 68.39%), linear-gradient(0deg, rgba(17, 110, 251, 0.03) 0%, rgba(17, 110, 251, 0.03) 100%), rgba(19, 23, 29, 0.20);
    padding: 24px;
}

.step-configuration .checkout-column-right .section-header {
    margin-bottom: 20px;
}

.step-configuration .checkout-column-right .section-header h2 {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Sobrescribir estilos antiguos que puedan interferir */
.step-configuration .onepage-checkout-container {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    gap: 30px !important;
}

.step-configuration .checkout-column-left,
.step-configuration .checkout-column-right {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
}

/* Step 2: Layout de columnas */
.step-payment .checkout-column-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Resumen del Total en Step 2 */
.order-total-summary {
    background: rgba(17, 110, 251, 0.05);
    border: 1px solid rgba(17, 110, 251, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.order-total-summary .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-summary .total-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.order-total-summary .total-label #payment-accounts-count {
    font-weight: 700;
    color: #fff;
}

.order-total-summary .total-amount {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

/* Resumen del pedido en Step 2 */
.step-payment .checkout-column-right {
    position: sticky;
    top: 20px;
}

#payment-order-summary {
    background: rgba(19, 23, 29, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    /* FORZAR flex en tablets - sobrescribir todos los grids */
    .onepage-checkout-container,
    .checkout-step-content .onepage-checkout-container,
    .checkout-step-content .onepage-checkout-container.step-configuration,
    .checkout-step-content .onepage-checkout-container.step-payment,
    #step-configuration .onepage-checkout-container.step-configuration,
    #step-payment .onepage-checkout-container.step-payment,
    .checkout-step-content #step-payment .onepage-checkout-container,
    .step-configuration .onepage-checkout-container,
    .step-configuration,
    .step-payment {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        gap: 20px !important;
    }
    
    /* Asegurar orden correcto y sobrescribir hijos directos */
    .checkout-step-content .onepage-checkout-container > *,
    .checkout-column-left,
    #step-configuration .checkout-column-left.configuracion-cuenta,
    #step-payment .checkout-column-left {
        order: 1 !important;
        width: 100% !important;
        grid-column: unset !important;
    }
    
    .checkout-column-right,
    #step-configuration .checkout-column-right.resumen-cuentas,
    #step-payment .checkout-column-right {
        order: 2 !important;
        width: 100% !important;
        grid-column: unset !important;
    }
    
    /* Quitar sticky en tablets */
    .step-configuration .checkout-column-right.resumen-cuentas,
    .step-payment .checkout-column-right {
        position: relative !important;
        top: 0 !important;
    }
    
    /* Challenge buttons en tablets - mantener ancho completo */
    .account-section.challenge .challenge-buttons {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }
    
    .account-section.challenge .challenge-button {
        flex: 1;
        min-width: 0;
    }
    
    /* Capital buttons en tablets - grid de 3 columnas */
    .account-section.trading-capital .capital-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    /* Tabs dentro de .configuracion-cuenta en tablet */
    .checkout-column-left.configuracion-cuenta > .checkout-tabs-container {
        order: -1; /* Asegurar que aparezcan primero */
        margin-bottom: 20px !important;
    }
    
    /* Tabs dentro de .customer-details-section en tablet */
    .customer-details-section > .checkout-tabs-container {
        order: -1; /* Asegurar que aparezcan primero */
        margin-bottom: 20px !important;
    }
}

@media (max-width: 768px) {
    /* FORZAR flex en móvil - sobrescribir TODOS los grids con alta especificidad */
    .onepage-checkout-container,
    .checkout-step-content .onepage-checkout-container,
    .checkout-step-content .onepage-checkout-container.step-configuration,
    .checkout-step-content .onepage-checkout-container.step-payment,
    #step-configuration .onepage-checkout-container.step-configuration,
    #step-payment .onepage-checkout-container.step-payment,
    .checkout-step-content #step-payment .onepage-checkout-container,
    .step-configuration .onepage-checkout-container,
    .step-configuration,
    .step-payment {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        gap: 16px !important;
    }
    
    /* Sobrescribir hijos directos y columnas */
    .checkout-step-content .onepage-checkout-container > * {
        grid-column: unset !important;
        width: 100% !important;
    }
    
    /* Columna izquierda (Configura tu cuenta) primero */
    .checkout-column-left,
    #step-configuration .checkout-column-left.configuracion-cuenta,
    #step-payment .checkout-column-left {
        order: 1 !important;
        width: 100% !important;
        grid-column: unset !important;
    }
    
    /* Columna derecha (Resumen de cuentas) segundo */
    .checkout-column-right,
    #step-configuration .checkout-column-right.resumen-cuentas,
    #step-payment .checkout-column-right {
        order: 2 !important;
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        grid-column: unset !important;
    }
    
    /* Reducir padding de los bloques en móvil */
    .step-configuration .checkout-column-left,
    .step-configuration .checkout-column-right.resumen-cuentas {
        padding: 16px !important;
    }
    
    .step-configuration .checkout-column-left .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px !important;
    }
    
    .step-configuration .checkout-column-left .section-header h2 {
        font-size: 18px !important;
    }
    
    .step-configuration .checkout-column-left .section-header .btn-add-account-header {
        width: 100%;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    /* Tabs en móvil - mantener en fila */
    .checkout-tabs-container {
        flex-direction: row !important;
        gap: 8px;
        margin-bottom: 16px !important;
    }
    
    .checkout-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .checkout-tab .tab-label {
        font-size: 11px;
    }
    
    /* Tabs dentro de .configuracion-cuenta en móvil/tablet */
    .checkout-column-left.configuracion-cuenta > .checkout-tabs-container {
        order: -1; /* Asegurar que aparezcan primero */
        margin-bottom: 20px !important;
    }
    
    /* Tabs dentro de .customer-details-section en móvil/tablet */
    .customer-details-section > .checkout-tabs-container {
        order: -1; /* Asegurar que aparezcan primero */
        margin-bottom: 20px !important;
    }
    
    /* Ajustar capital buttons */
    .capital-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .capital-button {
        padding: 12px 8px !important;
        min-height: 60px !important;
    }
    
    /* Resumen de cuentas más compacto */
    .accounts-summary-list {
        gap: 12px !important;
    }
    
    .account-summary-item {
        padding: 12px !important;
    }
    
    /* Account sections más compactos */
    .account-section {
        margin-bottom: 16px !important;
    }
    
    .account-section h4 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    /* Botones de modelo de cuenta */
    .account-type-buttons,
    .model-buttons {
        gap: 8px !important;
    }
    
    .model-button {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    /* Platform buttons */
    .platform-buttons {
        gap: 8px !important;
    }
    
    /* Cupón field */
    .coupon-field {
        gap: 8px !important;
    }
    
    .coupon-field input {
        font-size: 13px !important;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 18px !important;
    }
    
    /* Resumen total */
    .checkout-column-right .total-section {
        padding: 16px !important;
        margin-top: 16px !important;
    }
    
    .total-section .total-label {
        font-size: 16px !important;
    }
    
    .total-section .total-amount {
        font-size: 20px !important;
    }
    
    /* Banner de cuentas añadidas */
    .accounts-added-banner {
        padding: 12px !important;
        font-size: 13px !important;
    }
    
    .custom-checkbox-wrapper {
        padding: 12px;
        margin-top: 15px;
    }
    
    .custom-checkbox-label {
        font-size: 13px;
    }
    
    .custom-checkbox-label input[type="checkbox"] {
        transform: scale(1.1);
        margin-right: 10px;
    }
}

/* ========================================
   MODAL PERSONALIZADO - Cliente Recurrente
   ======================================== */

.noctorial-modal-overlay {
    display: none; /* No necesitamos overlay para toast */
}

.noctorial-modal {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 380px;
    width: 100%;
}

.noctorial-modal.show {
    opacity: 1;
    transform: translateY(0);
}

.noctorial-modal-content {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(148.33% 135.18% at 10.75% -33.53%, rgba(17, 110, 251, 0.40) 0%, rgba(17, 110, 251, 0.00) 68.39%), 
                radial-gradient(225.04% 274.28% at -40.27% -162.96%, rgba(17, 110, 251, 0.40) 0%, rgba(17, 110, 251, 0.00) 68.39%), 
                linear-gradient(0deg, rgba(17, 110, 251, 0.03) 0%, rgba(17, 110, 251, 0.03) 100%), 
                rgba(19, 23, 29, 0.95);
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.noctorial-modal-content:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.noctorial-modal-icon {
    font-size: 28px;
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
    animation: subtleBounce 2s ease infinite;
}

@keyframes subtleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.noctorial-modal-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.noctorial-modal-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px 40px;
}

.noctorial-modal-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.noctorial-modal-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(119, 163, 235, 0.8) 0%, 
        rgba(119, 163, 235, 1) 50%, 
        rgba(119, 163, 235, 0.8) 100%);
    box-shadow: 0 0 8px rgba(119, 163, 235, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .noctorial-modal {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
    
    .noctorial-modal-content {
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    .noctorial-modal-icon {
        font-size: 24px;
        margin-right: 10px;
    }
    
    .noctorial-modal-title {
        font-size: 14px;
    }
    
    .noctorial-modal-message {
        font-size: 12px;
        margin-left: 34px;
        margin-bottom: 10px;
    }
}

.quick-email-wrapper {
    display: none;
}