/* Markham Services - Premium Stylesheet */

@tailwind base;
@tailwind components;
@tailwind utilities;

/* --- TIPOGRAFÍA Y BASE --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f8fafc; /* Slate-50 muy suave */
}

/* Scrollbar moderna */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 2px solid #f8fafc; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* --- INPUTS FLOTANTES (Efecto Elevado) --- */
.floating-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    border: 1px solid #e2e8f0;
}

.floating-input:focus {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.floating-input ~ label {
    transition: all 0.3s ease;
    pointer-events: none;
    color: #64748b;
    padding: 0 6px;
    position: absolute;
    left: 1rem;
    top: 0.875rem;
    background-color: transparent; 
}

/* Animación de la etiqueta al escribir */
.floating-input:focus ~ label,
.floating-input:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    background-color: white;
    border-radius: 4px;
    z-index: 10;
}

/* --- TARJETAS DE SELECCIÓN (Interactivas) --- */
.selection-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.selection-card:hover {
    border-color: #60a5fa; /* Blue-400 */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.selection-card:active {
    transform: scale(0.98);
}

/* Estado Seleccionado */
.selection-card.selected {
    border-color: #2563eb;
    background-color: #eff6ff; /* Blue-50 */
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.check-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
}

.selection-card.selected .check-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* --- BOTONES DE PAGO (Tabs) --- */
.method-btn {
    position: relative;
    color: #64748b;
    z-index: 1;
    transition: color 0.2s;
}

.method-btn:hover { color: #0f172a; }

/* Fondo blanco deslizante (simulado) */
.method-btn.active {
    color: #2563eb;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-weight: 700;
    transform: scale(1.05);
}

/* --- ANIMACIONES (Modal y Chat) --- */
.modal-enter {
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* --- UTILIDADES --- */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}