/* ViaComodoro - Promociones y Beneficios CSS */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Outfit:wght@400;500;700&display=swap');

:root {
    --vcp-primary: #1a3fa8;
    --vcp-secondary: #0f2468;
    --vcp-gray-50: #f9fafb;
    --vcp-gray-100: #f3f4f6;
    --vcp-gray-200: #e5e7eb;
    --vcp-gray-300: #d1d5db;
    --vcp-gray-400: #9ca3af;
    --vcp-gray-500: #6b7280;
    --vcp-gray-600: #4b5563;
    --vcp-gray-700: #374151;
    --vcp-gray-800: #1f2937;
    --vcp-gray-900: #111827;
    --vcp-white: #ffffff;
    --vcp-radius: 16px;
    --vcp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --vcp-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.vcp-promociones {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header con gradiente animado */
.vcp-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.vcp-header::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--vcp-primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(40px);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.15; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 0.25; }
}

.vcp-titulo {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--vcp-primary), var(--vcp-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.vcp-subtitulo {
    font-size: 1.25rem;
    color: var(--vcp-gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filtros con efecto glassmorphism */
.vcp-filtros {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.vcp-filtro {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--vcp-gray-200);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--vcp-gray-700);
    position: relative;
    overflow: hidden;
}

.vcp-filtro::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: var(--vcp-primary);
    border-radius: 50px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.vcp-filtro:hover {
    transform: translateY(-2px);
    border-color: var(--vcp-primary);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.vcp-filtro.active::before {
    transform: translate(-50%, -50%) scale(1);
}

.vcp-filtro.active {
    color: var(--vcp-white);
    border-color: var(--vcp-primary);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

/* Grid responsivo */
.vcp-grid {
    display: grid;
    gap: 32px;
    margin-top: 40px;
}

.vcp-promociones[data-columnas="2"] .vcp-grid {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.vcp-promociones[data-columnas="3"] .vcp-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.vcp-promociones[data-columnas="4"] .vcp-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Tarjetas - Estilo Moderno */
.vcp-estilo-moderno .vcp-card-empresa {
    background: var(--vcp-white);
    border-radius: var(--vcp-radius);
    box-shadow: var(--vcp-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid var(--vcp-gray-200);
}

.vcp-estilo-moderno .vcp-card-empresa.visible {
    opacity: 1;
    transform: translateY(0);
}

.vcp-estilo-moderno .vcp-card-empresa:hover {
    transform: translateY(-8px);
    box-shadow: var(--vcp-shadow-lg);
    border-color: var(--vcp-primary);
}

/* Tarjetas - Estilo Minimalista */
.vcp-estilo-minimalista .vcp-card-empresa {
    background: var(--vcp-white);
    border: 2px solid var(--vcp-gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.vcp-estilo-minimalista .vcp-card-empresa.visible {
    opacity: 1;
    transform: translateY(0);
}

.vcp-estilo-minimalista .vcp-card-empresa:hover {
    border-color: var(--vcp-gray-900);
    transform: translateY(-4px);
}

/* Tarjetas - Estilo Vibrante */
.vcp-estilo-vibrante .vcp-card-empresa {
    background: linear-gradient(135deg, var(--vcp-white) 0%, var(--vcp-gray-50) 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    border: 2px solid transparent;
}

.vcp-estilo-vibrante .vcp-card-empresa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vcp-primary), var(--vcp-secondary), var(--vcp-primary));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.vcp-estilo-vibrante .vcp-card-empresa.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vcp-estilo-vibrante .vcp-card-empresa:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25);
}

/* Header de tarjeta */
.vcp-card-header {
    padding: 30px 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    background: linear-gradient(135deg, var(--vcp-gray-50) 0%, var(--vcp-white) 100%);
    border-bottom: 1px solid var(--vcp-gray-200);
}

.vcp-logo {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.vcp-card-empresa:hover .vcp-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.vcp-icono {
    font-size: 4rem;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.vcp-card-empresa:hover .vcp-icono {
    transform: scale(1.1) rotate(5deg);
}

/* Body de tarjeta */
.vcp-card-body {
    padding: 24px 30px;
}

.vcp-nombre {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--vcp-gray-900);
    line-height: 1.3;
}

.vcp-tipo {
    display: inline-block;
    background: var(--vcp-primary);
    color: var(--vcp-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.vcp-destinos,
.vcp-servicios {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--vcp-gray-600);
    margin: 12px 0;
}

.vcp-destinos strong,
.vcp-servicios strong {
    color: var(--vcp-gray-800);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Promociones en tarjetas */
.vcp-promociones-empresa {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--vcp-gray-200);
}

.vcp-promociones-titulo {
    display: block;
    color: var(--vcp-gray-800);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
}

.vcp-promocion-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--vcp-primary);
    padding: 15px;
    border-radius: 8px;
    margin: 12px 0;
    transition: all 0.3s ease;
}

.vcp-promocion-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.vcp-promocion-item.destacada {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
    position: relative;
}

.vcp-promocion-item.destacada::before {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
}

.vcp-promocion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.vcp-promocion-icono {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vcp-promocion-titulo {
    font-weight: 700;
    color: var(--vcp-gray-900);
    font-size: 0.95rem;
    line-height: 1.4;
}

.vcp-promocion-desc {
    color: var(--vcp-gray-700);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 8px 0;
}

.vcp-promocion-vigencia {
    font-size: 0.85rem;
    color: var(--vcp-gray-600);
    margin: 8px 0 0 0;
    font-style: italic;
}

.vcp-promocion-terminos {
    margin-top: 12px;
    cursor: pointer;
}

.vcp-promocion-terminos summary {
    font-size: 0.85rem;
    color: var(--vcp-primary);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vcp-promocion-terminos summary::before {
    content: '▶';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.vcp-promocion-terminos[open] summary::before {
    transform: rotate(90deg);
}

.vcp-promocion-terminos p {
    margin-top: 10px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--vcp-gray-600);
    line-height: 1.6;
}

/* Tipos de promoción */
.vcp-promocion-item[data-tipo="cuotas"] {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: #3b82f6;
}

.vcp-promocion-item[data-tipo="descuento"] {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #10b981;
}

.vcp-promocion-item[data-tipo="especial"] {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-left-color: #ec4899;
}

/* Footer de tarjeta */
.vcp-card-footer {
    padding: 20px 30px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--vcp-gray-100);
    background: var(--vcp-gray-50);
}

/* Botones modernos */
.vcp-btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    flex: 1;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.vcp-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.vcp-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.vcp-btn-primary {
    background: linear-gradient(135deg, var(--vcp-primary), var(--vcp-secondary));
    color: var(--vcp-white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.vcp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.vcp-btn-secondary {
    background: var(--vcp-gray-100);
    color: var(--vcp-gray-700);
    border: 1px solid var(--vcp-gray-300);
}

.vcp-btn-secondary:hover {
    background: var(--vcp-gray-200);
    border-color: var(--vcp-gray-400);
    transform: translateY(-2px);
}

.vcp-btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--vcp-white);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.vcp-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .vcp-titulo {
        font-size: 2.5rem;
    }
    
    .vcp-promociones[data-columnas="4"] .vcp-grid,
    .vcp-promociones[data-columnas="3"] .vcp-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .vcp-promociones {
        padding: 40px 16px;
    }
    
    .vcp-titulo {
        font-size: 2rem;
    }
    
    .vcp-subtitulo {
        font-size: 1rem;
    }
    
    .vcp-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .vcp-filtros {
        gap: 8px;
    }
    
    .vcp-filtro {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .vcp-card-footer {
        flex-direction: column;
    }
    
    .vcp-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vcp-titulo {
        font-size: 1.75rem;
    }
    
    .vcp-card-header {
        padding: 20px;
        min-height: 100px;
    }
    
    .vcp-card-body {
        padding: 20px;
    }
    
    .vcp-card-footer {
        padding: 16px 20px 20px;
    }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vcp-card-empresa {
    animation: fadeInUp 0.6s ease forwards;
}

/* Dark mode support (opcional) */
@media (prefers-color-scheme: dark) {
    .vcp-promociones {
        background: var(--vcp-gray-900);
    }
    
    .vcp-card-empresa {
        background: var(--vcp-gray-800);
        border-color: var(--vcp-gray-700);
    }
    
    .vcp-nombre {
        color: var(--vcp-white);
    }
    
    .vcp-destinos,
    .vcp-servicios {
        color: var(--vcp-gray-400);
    }
}
