/* VozAI Pricing Section Styles */

:root {
    --background: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --card-bg: #000000;
    --border: #1f1f1f;
    --accent: #ffffff;
    --accent-hover: #e5e5e5;
    --success: #10b981;
    --popular-bg: #ffffff;
    --popular-border: #ffffff;
}

[data-theme="light"] {
    --background: #ffffff;
    --text-primary: #000000;
    --text-secondary: #6b7280;
    --card-bg: #f9fafb;
    --border: #e5e7eb;
    --accent: #000000;
    --accent-hover: #1f2937;
    --popular-bg: #000000;
    --popular-border: #000000;
}

/* Pricing Section */
.pricing-section {
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Toggle Hint - Redesigned */
.toggle-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.12));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.toggle-hint:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.16));
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.hint-icon {
    width: 18px;
    height: 18px;
    color: #60a5fa;
    flex-shrink: 0;
    animation: pulse-hint 3s ease-in-out infinite;
}

.toggle-hint span {
    font-size: 0.8125rem;
    color: var(--text-primary);
    white-space: nowrap;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.01em;
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

/* Mobile responsive for hint */
@media (max-width: 768px) {
    .toggle-hint span {
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        font-size: 0.75rem;
    }
}

/* Toggle Switch */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
}

.toggle-label {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background: var(--success);
}

.toggle-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: pulse-toggle 2s ease-in-out infinite;
    pointer-events: none;
}

.toggle-switch.active .toggle-pulse {
    display: none;
}

@keyframes pulse-toggle {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 1;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(28px);
    background: black;
}

.savings-badge {
    background: var(--success);
    color: black;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Mobile Navigation Arrows */
.mobile-nav-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mobile-nav-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-nav-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.mobile-nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.mobile-nav-arrow svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Hide mobile arrows on desktop */
@media (min-width: 769px) {
    .mobile-nav-arrows {
        display: none;
    }
}

/* Desktop Navigation - Minimalist & Elegant */
.desktop-nav-hint {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.desktop-nav-hint:hover {
    opacity: 1;
    transform: translateY(-50%) translateX(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.desktop-nav-hint.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

.desktop-nav-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}

.desktop-nav-hint:hover .desktop-nav-text {
    color: rgba(255, 255, 255, 1);
}

.desktop-nav-arrow {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.desktop-nav-hint:hover .desktop-nav-arrow {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(2px);
}

.desktop-nav-arrow svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s ease;
}

.desktop-nav-hint:hover .desktop-nav-arrow svg {
    fill: rgba(255, 255, 255, 1);
}

/* Hide desktop nav on mobile and very large screens */
@media (max-width: 768px) {
    .desktop-nav-hint {
        display: none;
    }
}

@media (min-width: 1600px) {
    .desktop-nav-hint {
        display: none;
    }
}

/* Pricing Container */
.pricing-container {
    position: relative;
    overflow: hidden;
}

/* Unified Horizontal Slider */
.pricing-slider {
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.pricing-slider:active {
    cursor: grabbing;
}

.pricing-slider * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.pricing-slider-track {
    display: flex;
    gap: 1.5rem;
    padding: 20px 1rem 10px 1rem;
    width: max-content;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.pricing-slider-track.dragging {
    transition: none;
}

/* Plan Cards */
.plan-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    min-width: 280px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.plan-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.plan-card.popular {
    border-color: var(--popular-border);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.plan-card.popular::before {
    content: "Más Popular";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--popular-bg);
    color: #000000;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
}

/* Plan Features */
.plan-features {
    flex: 1;
    margin: 1.5rem 0 0 0;
}

.plan-features ul {
    list-style: none;
    space-y: 0.75rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.plan-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Plan CTA */
.plan-cta {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

[data-theme="light"] .plan-cta {
    color: #ffffff;
}

.plan-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

[data-theme="light"] .plan-cta:hover {
    color: #ffffff;
}

.plan-card.popular .plan-cta {
    background: var(--popular-bg);
    color: #000000;
}

.plan-card.popular .plan-cta:hover {
    background: var(--popular-border);
    color: #000000;
}

/* Guarantee */
.guarantee {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.guarantee-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.guarantee-highlight {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-title {
        font-size: 2rem;
    }

    .pricing-grid {
        display: none;
    }

    .pricing-slider {
        display: block;
    }

    .plan-card {
        min-width: 260px;
        padding: 1.5rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}

/* Drag functionality */
.pricing-slider.dragging {
    scroll-behavior: auto;
}

.pricing-slider:not(.dragging) {
    scroll-behavior: smooth;
}

/* Override main site #precios styles */
#precios {
    background: transparent !important;
    padding: 8rem 5% !important;
    max-width: none !important;
}

#precios::before {
    display: none !important;
}

/* Initially hide desktop nav hint */
.desktop-nav-hint {
    display: none;
}

/* Freemium Plan Highlight - Elegant with Yellow Accent */
.plan-card.freemium-highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    position: relative;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1);
}

.plan-card.freemium-highlight::before {
    content: "Prueba Gratis";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
    white-space: nowrap;
}

.plan-card.freemium-highlight:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.15);
    transform: translateY(-6px);
}

.plan-card.freemium-highlight .plan-cta {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.9));
    color: #000000;
    font-weight: 600;
}

.plan-card.freemium-highlight .plan-cta:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.plan-card.freemium-highlight .price-note {
    color: rgba(251, 191, 36, 0.9);
    font-weight: 500;
}
