/*
 * 🔘 BOTONES - SISTEMA DE DISEÑO XACOBEOS
 * Estilos de botones inspirados en el diseño de la home
 */

/* ================================
   BOTÓN BASE (ESTILO HOME - SIN SOMBRAS)
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: none;
    box-shadow: none;
    min-height: 48px;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0.01em;
}

.btn:hover {
    transform: none;
    box-shadow: none;
}

.btn:active {
    transform: none;
    box-shadow: none;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* ================================
   VARIANTES DE BOTONES (ESTILO HOME)
   ================================ */
.btn-primary {
    background: var(--camino-yellow);
    color: var(--gray-900);
}

.btn-primary:hover {
    background: var(--camino-yellow-dark);
    color: var(--gray-900);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    border-color: var(--gray-50);
}

.btn-success {
    background: #10B981;
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
    color: var(--white);
}

.btn-warning {
    background: #F59E0B;
    color: var(--white);
}

.btn-warning:hover {
    background: #D97706;
    color: var(--white);
}

.btn-error {
    background: #EF4444;
    color: var(--white);
}

.btn-error:hover {
    background: #DC2626;
    color: var(--white);
}

.btn-info {
    background: #3B82F6;
    color: var(--white);
}

.btn-info:hover {
    background: #2563EB;
    color: var(--white);
}

/* ================================
   BOTONES OUTLINE (ESTILO HOME)
   ================================ */
.btn-outline-primary {
    background: transparent;
    color: var(--camino-yellow);
    border: 2px solid var(--camino-yellow);
}

.btn-outline-primary:hover {
    background: var(--camino-yellow);
    color: var(--gray-900);
    border-color: var(--camino-yellow);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--gray-900);
    border: 2px solid var(--gray-300);
}

.btn-outline-secondary:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    border-color: var(--gray-300);
}

/* ================================
   TAMAÑOS DE BOTONES (ESTILO HOME)
   ================================ */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
    border-radius: 8px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 56px;
    border-radius: 14px;
}

.btn-extra-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    min-height: 64px;
    border-radius: 16px;
}

/* ================================
   ESTADOS DE CARGA (ESTILO HOME)
   ================================ */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading .btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(17, 24, 39, 0.3);
    border-top: 2px solid var(--gray-900);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-secondary .btn-spinner {
    border: 2px solid rgba(17, 24, 39, 0.3);
    border-top: 2px solid var(--gray-900);
}

.btn-outline-primary .btn-spinner {
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-top: 2px solid var(--camino-yellow);
}

.btn-outline-secondary .btn-spinner {
    border: 2px solid rgba(17, 24, 39, 0.3);
    border-top: 2px solid var(--gray-900);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   BOTONES ESPECIALES HOME (SIN SOMBRAS)
   ================================ */
.btn-ghost {
    background: transparent;
    color: var(--gray-900);
    border: none;
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    transform: none;
    box-shadow: none;
}

.btn-link {
    background: transparent;
    color: var(--camino-yellow);
    border: none;
    box-shadow: none;
    text-decoration: underline;
    padding: 0.5rem 0;
    min-height: auto;
}

.btn-link:hover {
    color: var(--camino-yellow-dark);
    transform: none;
    box-shadow: none;
    text-decoration: underline;
}

/* ================================
   RESPONSIVE (ESTILO HOME)
   ================================ */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
        border-radius: 10px;
    }
    
    .btn-small {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        min-height: 32px;
        border-radius: 6px;
    }
    
    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 12px;
    }
    
    .btn-extra-large {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        min-height: 56px;
        border-radius: 14px;
    }
} 