/* Variables de colores */
:root {
    --primary-orange: #ff6b35;
    --primary-yellow: #ffc107;
    --dark-bg: #212529;
    --success-green: #28a745;
}

/* Fuentes */
body {
    font-family: 'Montserrat', sans-serif;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Sección Hero */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../../imagenes/site/portada.jpg') no-repeat center center fixed;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Badge decorativo */
.badge-ribbon {
    margin-top: 5rem;
    background: transparent;
    background: linear-gradient(135deg, #ff800099, transparent);
    color: white;
    padding: 1.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    transform: rotate(-8deg);
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 106, 0, 0.4);
}

/* Card de registro */
.registration-card .card-body{
    padding: 2rem !important;
}
.registration-card {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    border-radius: 1.5rem !important;
    color: white !important;
}

.registration-card .form-control,
.registration-card .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.registration-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.registration-card .form-control:focus,
.registration-card .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-orange);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.registration-card .form-select option {
    background: var(--dark-bg);
    color: white;
}

/* Selector de ciclo de facturación */
.billing-toggle {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.3rem;
}

.billing-toggle .btn {
    border-radius: 10px;
    padding: 0.5rem 2rem;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.billing-toggle .btn.active {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Tarjetas de planes */
.plan-card {
    border: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 2rem;
    overflow: visible;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.plan-card.selected {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

/* Badge de plan recomendado */
.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-orange), #ff8c42);
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 10;
}

/* Badge de descuento */
.discount-badge {
    position: absolute;
    top: 0px;
    right: -50px;
    background: #dc3545;
    color: white;
    padding: 0.3rem 3rem;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

/* Badge de prueba gratis */
#planSummary .trial-badge {
    top: -10px;
}
.trial-badge {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--success-green), #20c997);
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 10;
}

/* Badges de tier */
.tier-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tier-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #e8a05d);
    color: white;
}

.tier-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.tier-badge.gold {
    background: linear-gradient(135deg, #ffd900, #fff06a);
    color: #333;
}

/* Precios */
.price-old {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 1.2rem;
}

.price-current {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--dark-bg);
}

.price-free {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--success-green);
}

/* Iconos de características */
.feature-icon {
    color: var(--success-green);
    font-size: 1.2rem;
}

/* Tooltip de información */
.tooltip-icon {
    cursor: help;
    color: #6c757d;
    font-size: 0.9rem;
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tooltip-icon:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

/* Badge de meses gratis */
.bonus-badge {
    background: linear-gradient(135deg, var(--success-green), #20c997);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Botón de selección de plan */
.select-plan-btn {
    font-weight: bold;
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.select-plan-btn.selected {
    background: var(--success-green) !important;
    color: white !important;
    border-color: var(--success-green) !important;
}

/* Botón flotante de pago */
.sticky-payment-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
    writing-mode: vertical-rl;
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 2rem 1rem;
    border-radius: 10px 0 0 10px;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.sticky-payment-btn:hover {
    padding-right: 1.5rem;
    background: #e65a2e;
}

/* Offcanvas personalizado */
.offcanvas-custom {
    width: 450px !important;
}

@media (max-width: 768px) {
    .offcanvas-custom {
        width: 100% !important;
    }
    .badge-ribbon {
      margin-top: 5rem;
      margin-bottom: 5rem;
    }

}

/* Accordion FAQ */
.accordion-button:not(.collapsed) {
    background-color: #fff3cd;
    color: var(--dark-bg);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    font-weight: bold;    
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .price-current, .price-free {
        font-size: 2.5rem;
    }
    
}

/* Validación de formulario */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745 !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.registration-card .btn-warning {
    transition: background-color 0.3s ease;
    border-bottom-left-radius: 1.5rem !important;
    border-bottom-right-radius: 1.5rem !important;
    border-top-left-radius: 0.1px !important;
    border-top-right-radius: 0.1px !important;
}

.registration-card .btn-warning:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pestañas de método de pago */
#paymentMethodTabs .nav-link {
    font-weight: 600;
    color: #6c757d;
    border: 2px solid transparent;
}

#paymentMethodTabs .nav-link.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

#paymentMethodTabs .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Formulario Getnet */
#cardForm iframe {
    border: none !important;
    width: 100% !important;
}


/* ══════════════════════════════════════════════════════
   INDICADOR DE PASOS DEL FORMULARIO (OTP flow)
══════════════════════════════════════════════════════ */
.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-dot.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.3);
}

.step-dot.done {
    background: var(--success-green);
    border-color: var(--success-green);
    color: #645858b0;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    max-width: 60px;
    transition: background 0.3s ease;
}

.step-line.done {
    background: var(--success-green);
}

/* Input OTP grande */
#otpCodigo {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 193, 7, 0.5) !important;
    color: white !important;
    border-radius: 12px !important;
}

#otpCodigo:focus {
    border-color: var(--primary-yellow) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
}

#otpCodigo::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    letter-spacing: 0.5rem;
}