/* ==================== SUBSCRIPTIONS STYLES ==================== */

/* Toggle Switch */
.toggle-switch {
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch:hover {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(106, 90, 255, 0.4);
}

.toggle-circle {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* Plan Cards */
.card-plan {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.card-plan:hover::before {
    left: 100%;
}

.card-plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(106, 90, 255, 0.2);
}

.plan-free:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.plan-pro:hover {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}

.plan-premium:hover {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.plan-vip:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    transform: translateY(-12px) scale(1.02);
}

/* Button Subscribe */
.btn-subscribe {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-subscribe::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-subscribe:hover::before {
    width: 300px;
    height: 300px;
}

.btn-subscribe:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Comparativa Table */
.overflow-x-auto {
    border-radius: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 211, 238, 0.3) transparent;
}

.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: transparent;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.3);
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.5);
}

table tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: rgba(34, 211, 238, 0.1);
}

table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

table td {
    transition: color 0.2s ease;
}

/* FAQ */
.faq-item {
    transition: all 0.3s ease;
}

.faq-toggle {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.faq-toggle:hover {
    color: rgba(34, 211, 238, 0.8);
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Notification */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.animate-pulse {
    animation: slideIn 0.3s ease-out;
}

/* Modal */
.modal-backdrop {
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    animation: slideUp 0.3s ease-out;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-plan {
        padding: 1.5rem;
    }

    .card-plan:hover {
        transform: translateY(-4px);
    }

    .plan-vip:hover {
        transform: translateY(-6px);
    }

    table {
        font-size: 0.875rem;
    }

    table th, table td {
        padding: 0.75rem;
    }

    .faq-toggle {
        font-size: 0.95rem;
    }
}

/* Animaciones de Entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-plan {
    animation: fadeInDown 0.5s ease-out forwards;
}

.card-plan:nth-child(1) {
    animation-delay: 0.1s;
}

.card-plan:nth-child(2) {
    animation-delay: 0.2s;
}

.card-plan:nth-child(3) {
    animation-delay: 0.3s;
}

.card-plan:nth-child(4) {
    animation-delay: 0.4s;
}

/* Gradientes Animados */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.bg-gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Input Styles */
input[type="email"],
input[type="text"] {
    transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.7);
}

/* Checkmarks y X Styles */
.text-cyan-400, .text-blue-400, .text-purple-400 {
    font-weight: bold;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.text-red-400 {
    font-weight: bold;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

/* Badge de Plan Recomendado */
[class*="RECOMENDADO"],
[class*="MÁXIMO"] {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Transiciones Globales */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

button, a {
    transition: all 0.3s ease;
}

/* Efectos de Hover para Links */
a.hover\\:text-cyan-400:hover {
    color: rgba(34, 211, 238, 0.8);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Alineación de Precios */
.text-4xl.font-bold {
    line-height: 1;
}

/* Estilos para Lista de Características */
li.flex {
    transition: padding-left 0.2s ease;
}

li.flex:hover {
    padding-left: 0.25rem;
}

/* Sombras Dinámicas */
.hover\\:shadow-lg {
    transition: box-shadow 0.3s ease;
}

/* Media Queries Adicionales */
@media (max-width: 640px) {
    .grid-cols-1 {
        grid-auto-flow: row;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Estilos Impresos */
@media print {
    .btn-subscribe,
    .toggle-switch,
    .close-modal {
        display: none;
    }

    .card-plan {
        break-inside: avoid;
    }
}
