/* ======================
   BOTONES BASE
   ====================== */
.botones {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    margin: 8px 4px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 44px;
    line-height: 1.4;
    vertical-align: middle;
}

.botones:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.botones:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botón deshabilitado */
.botones:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ======================
   CONTENEDOR DE BOTONES
   ====================== */
.botones-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
}

/* ======================
   VARIANTES DE BOTONES
   ====================== */

/* Botón primario (para acciones principales) */
.botones.primario {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.botones.primario:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
}

/* Botón secundario */
.botones.secundario {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.botones.secundario:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

/* Botón de peligro/cancelar */
.botones.peligro {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.botones.peligro:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
}

/* Botón grande */
.botones.grande {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

/* Botón pequeño */
.botones.pequeno {
    padding: 8px 16px;
    font-size: 14px;
}

/* Botón de ancho completo */
.botones.full-width {
    width: 100%;
    display: block;
    margin: 8px 0;
}

/* ======================
   BOTONES EN FORMULARIOS
   ====================== */
input[type="submit"].botones,
button.botones {
    appearance: none;
    -webkit-appearance: none;
    border: none;
}

/* ======================
   RESPONSIVE - TABLETS
   ====================== */
@media (max-width: 768px) {
    .botones {
        padding: 10px 20px;
        font-size: 15px;
        margin: 6px 3px;
    }
    
    .botones.grande {
        padding: 14px 28px;
        font-size: 17px;
    }
    
    .botones-container {
        gap: 10px;
        padding: 12px;
    }
}

/* ======================
   RESPONSIVE - MÓVILES
   ====================== */
@media (max-width: 480px) {
    .botones {
        padding: 12px 16px;
        font-size: 14px;
        margin: 8px 4px;
        width: calc(100% - 8px);
        display: inline-block;
    }
    
    /* Botones que deben ocupar todo el ancho en móvil */
    .botones.full-width,
    input[type="submit"].botones {
        width: 100%;
        margin: 8px 0;
    }
    
    .botones.grande {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .botones.pequeno {
        padding: 8px 12px;
        font-size: 13px;
        width: auto;
    }
    
    .botones-container {
        gap: 8px;
        padding: 10px 5px;
        flex-direction: column;
    }
    
    .botones-container .botones {
        width: 100%;
    }
}

/* ======================
   ACCESIBILIDAD
   ====================== */
.botones:focus {
    outline: 3px solid rgba(76, 175, 80, 0.5);
    outline-offset: 2px;
}

.botones:focus:not(:focus-visible) {
    outline: none;
}

/* Mejora para usuarios que prefieren movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .botones {
        transition: none;
    }
    
    .botones:hover {
        transform: none;
    }
}