/**
 * Estilos públicos premium - Albatros Runner
 * Diseño Responsive, Moderno y Mobile First
 */

:root {
    --albatros-primary: #0d6efd;
    --albatros-primary-hover: #0b5ed7;
    --albatros-success: #198754;
    --albatros-success-hover: #157347;
    --albatros-secondary: #6c757d;
    --albatros-secondary-hover: #5c636a;
    --albatros-dark: #212529;
    --albatros-light: #f8f9fa;
    --albatros-border: #dee2e6;
    --albatros-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --albatros-radius: 12px;
}

.albatros-events-wizard {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid var(--albatros-border);
    border-radius: var(--albatros-radius);
    box-shadow: var(--albatros-shadow);
    padding: 30px;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--albatros-dark);
}

/* Barra de progreso */
.wizard-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}
.wizard-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--albatros-border);
    z-index: 1;
}
.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}
.progress-step span {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--albatros-border);
    display: inline-block;
    font-weight: bold;
    color: var(--albatros-secondary);
    transition: all 0.3s ease;
}
.progress-step p {
    margin: 8px 0 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--albatros-secondary);
    transition: all 0.3s ease;
}

.progress-step.active span {
    border-color: var(--albatros-primary);
    background: var(--albatros-primary);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.15);
}
.progress-step.active p {
    color: var(--albatros-primary);
    font-weight: 600;
}
.progress-step.completed span {
    border-color: var(--albatros-success);
    background: var(--albatros-success);
    color: #fff;
}
.progress-step.completed p {
    color: var(--albatros-success);
}

/* Tarjetas de pasos */
.wizard-card {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}
.wizard-card.active {
    display: block;
}

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

.wizard-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--albatros-dark);
}
.step-desc {
    color: var(--albatros-secondary);
    margin-bottom: 25px;
    font-size: 15px;
}

/* Inputs y Formularios */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #495057;
}
.form-group label .required {
    color: #dc3545;
}
.form-control, 
.albatros-events-wizard input[type="text"], 
.albatros-events-wizard input[type="email"], 
.albatros-events-wizard input[type="tel"], 
.albatros-events-wizard input[type="date"], 
.albatros-events-wizard select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1.5px solid var(--albatros-border);
    border-radius: 8px;
    background: var(--albatros-light);
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.form-control:focus, 
.albatros-events-wizard input:focus, 
.albatros-events-wizard select:focus {
    border-color: var(--albatros-primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.text-center {
    text-align: center;
}
.letter-spacing-lg {
    letter-spacing: 4px;
    font-size: 20px !important;
    font-weight: bold;
}

/* Grilla del formulario */
.form-section {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--albatros-border);
    padding-bottom: 25px;
}
.form-section h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--albatros-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section h3 .dashicons {
    color: var(--albatros-primary);
}
.section-desc {
    font-size: 13px;
    color: var(--albatros-secondary);
    margin-top: -10px;
    margin-bottom: 15px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}
.col-span-2 {
    grid-column: span 2;
}

@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}
.btn-primary {
    background: var(--albatros-primary);
    color: #fff;
}
.btn-primary:hover:not(:disabled) {
    background: var(--albatros-primary-hover);
}
.btn-secondary {
    background: #e2e6ea;
    color: var(--albatros-dark);
}
.btn-secondary:hover:not(:disabled) {
    background: #dae0e5;
}
.btn-success {
    background: var(--albatros-success);
    color: #fff;
}
.btn-success:hover:not(:disabled) {
    background: var(--albatros-success-hover);
}
.btn-block {
    display: flex;
    width: 100%;
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.wizard-actions {
    margin-top: 30px;
}
.grid-actions {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s ease-in-out infinite;
    position: absolute;
}
.btn-secondary .spinner {
    border-top-color: var(--albatros-dark);
}
.loading .spinner {
    display: inline-block;
}
.loading .btn-text {
    visibility: hidden;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alertas y Errores */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-info {
    background: #e2f0fe;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.error-msg {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

/* OTP Countdown */
.otp-timer-box {
    margin-top: 15px;
    font-size: 13px;
    color: var(--albatros-secondary);
}
#otp-countdown {
    font-weight: bold;
    color: var(--albatros-dark);
}

/* Deslinde de Responsabilidad */
.deslinde-text-container {
    border: 1.5px solid var(--albatros-border);
    border-radius: 8px;
    padding: 20px;
    max-height: 250px;
    overflow-y: scroll;
    background: var(--albatros-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Signature Pad */
.signature-section-wrapper label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}
.signature-pad-container {
    border: 1.5px solid var(--albatros-border);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 10px;
    position: relative;
    width: 100%;
    height: 200px;
}
.signature-pad-container canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}
.signature-pad-actions {
    display: flex;
    justify-content: flex-end;
}

/* Pantalla de éxito */
.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #d1e7dd;
    color: var(--albatros-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}
.success-icon-wrapper .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
}

/* ==========================================================================
   Personalizaciones de WooCommerce para Ficha de Producto y Checkout de Eventos
   ========================================================================== */

/* 1. Ocultar precio original y selector de cantidad en la ficha del evento */
.albatros-is-event .summary p.price,
.albatros-is-event .summary .price:not(.albatros-event-price-container .price) {
    display: none !important;
}
.albatros-is-event .quantity {
    display: none !important;
}

/* 2. Ocultar campos adicionales y asistente de FooEvents en el checkout */
.albatros-checkout-event-fields-active .woocommerce-additional-fields {
    display: none !important;
}

/* 3. Ocultar la tabla de revisión de orden de WooCommerce en checkout de eventos */
.albatros-checkout-event-fields-active .woocommerce-checkout-review-order-table {
    display: none !important;
}

/* 4. Ocultar el título de detalles de evento nativo de FooEvents */
.albatros-inline-event-details h2,
.albatros-inline-event-details h3,
.albatros-inline-event-details h4 {
    display: none !important;
}




